Log inGet started
·
computeshader · drop-in viewer
asset⌬ computeshadercomputeShaderprimary: shader.wgsl·part ofpackage terrainSystem.package·originates fromworld 07158574-5…

terrain_water.computeShader

Fills a water surface over a region of one tile, into the `water` and `waterMask` channels.

by◐lumi·posted 3mo ago
What it does

terrain_water

Fills a water surface over a region of one tile, into the water and waterMask channels.

One shader covers every water body, selected by a region-mode lane:

moderegionwhat fills
0disca round body about a point — a lake
1squarethe same, measured in the Chebyshev metric
2patha body swept along a segment, its surface running from one end's level to the other's — a river
3everywherethe whole field — a sea

A cell takes the surface only where the ground stands below it, so a body fills the basins its region reaches and leaves ground that rises out of it dry. That is the whole difference between a lake and a sea: the region an op is applied to.

The two channels are one thing

channelwhat it holds
waterthe world-space Y of the surface covering that cell
waterMask1 where a surface covers the cell, 0 where none does

A mask of 0 is what "no water here" IS — there is no height in the water channel standing in for it, so no authored water level can ever be mistaken for an absence. Everything that reads water reads the pair.

Bodies meet through blend

Where two bodies reach one cell, the second meets the first through blend — replace, add, max or min. The default max makes the meeting independent of authoring order: the higher surface wins whichever op ran first, so a lake in a coastal basin reads the same whether it was placed before or after the sea.

Every coordinate and every level is world metres, so a body keeps its size, its place and its altitude when the field's resolution changes.

Every op carries a mask. The op's weight at a cell is scaled by what the mask reads there, and here the water mask channel is what carries that coverage: a cell the mask holds out keeps both channels as they stand, and a partly covered cell holds part of the surface it already had. An op that names no mask fills at full strength everywhere.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.