Log inGet started
Package

cloud_shadow_march.shaderModule

Newest version

This package holds more than this page lists. See all of its files in its world.

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 coordinate m for the camera at cam. 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_shell
  • cloud_density
  • cloud_shadow_space