Builtin Library
- ..
- README.md805 B
- module.wgsl3.2 KB
README.md
cloud_shadow_march
One line of the cloud layer's shadow map marched across the layer, for the
passes that write the map (cloud_shadow_carry, cloud_shadow_map).
cloud_shadow_march(m, cam, line)— the share of the sun's light crossing the cloud above the layer's base and above a quarter, a half and three quarters of the way up, along the line through map coordinatemfor the camera atcam. The samples run through the same clouds the raymarcher draws (cloud_density), their heights taken over the curved shell (cloud_shell).cloud_shadow_texel_at(texel, dims)— the map coordinate of a texel's middle.
The including shader declares the bindings cloud_density and
cloud_shadow_space name.
Includes
cloud_shellcloud_densitycloud_shadow_space