Builtin Library
- ..
- README.md712 B
- module.wgsl3.7 KB
README.md
cloud_density
The cloud layer's density where it stands in the world, read by every pass
that marches the layer: the raymarcher that draws it (cloud_raymarch) and
the map of the shadow it casts (cloud_shadow_map), so both see the same
clouds.
height_profile(h, cloud_type)— how much cloud a type holds at height fractionhthrough the layer.weather_at(p)— the weather map's coverage, cloud type and density overp.cloud_density(p, h, w, t, with_detail)— the cloud atp, seen fromtaway; withoutwith_detailthe shape alone.
The including shader declares shape, detail, weather, noise_smp and the
layer's uniforms U (the layout cloud_raymarch states).