bokashiNight.styleBlock
A night sky printed in graded bands: near-black indigo above fading to a pale grey-blue glow at the horizon, clouds as soft grey shapes, dark water.
Bokashi night sky (styleBlock, Fill)
A night sky printed in graded bands: near-black indigo above fading to a pale grey-blue glow at the horizon, clouds as soft grey shapes, dark water.
Runs the shared bokashi pass (bokashi.shader) with its own defaults, so it swaps with the other bokashi blocks with one change: StyleKit.swap("bokashi", "bokashiNight"). Settings: sky, top, mid, horizon, topAt, midAt, bands, bandSoft, wipe, clouds, cloudAt, cloudColour, water, waterLevel, shallow, deep, deepAt, reach, waterBands, keepWaves.
Pairs with the night palette and the shin-hanga night fill.
Works on whatever sky the world already has (a skybox, a procedural sky, a painted sky): it repaints sky pixels by their height above the horizon and keeps the existing clouds as flat paper shapes. Water is found from the water level: an opaque water surface at that height facing up, or anything seen below it through transparent water. Set the level once with require("~ukiyoeBlocks.Woodblock").setWater(y).
What it gives up in motion
The bands are laid on the view direction's height and the streaks on compass direction, so they hold still in the world as the camera turns, like the sky itself. The cloud shapes follow the clouds the scene renders. On water the bands follow depth: where the bed shows through clear water they follow the bed; on an opaque sea they deepen with distance from the viewer, so walking along the shore slides them a little with you.
How it treats content
- Opaque things: untouched, except surfaces lying exactly at the water level facing up, which read as water.
- Transparent things (glass, water): water is repainted by depth; glass shows what is behind it.
- Particles and smoke: kept as rendered over the sky.
- Sky: repainted in graded bands, clouds kept as flat shapes.
- Fog: fogged land is untouched; fogged sky takes the gradation.
- Skinned characters: untouched (a character wading is below the level only at its feet).
- Foliage: untouched.
- World text: untouched unless it lies flat at the water level.
- Black stays black:
sk_finishkeeps black black. - Dim rooms: untouched; only the sky and water are repainted.
Scoped to this part · feeds back into the world's score.