Log inGet started
Package

cloud_density.shaderModule

Newest version

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

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 fraction h through the layer.
  • weather_at(p) — the weather map's coverage, cloud type and density over p.
  • cloud_density(p, h, w, t, with_detail) — the cloud at p, seen from t away; without with_detail the shape alone.

The including shader declares shape, detail, weather, noise_smp and the layer's uniforms U (the layout cloud_raymarch states).