Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

README.md

cloud_weather

Fills the cloud layer's weather map: coverage, cloud type and density over each place in the world, one texel per patch of ground, repeating every weatherExtent world units.

Each texel starts from the sky's coverage, cloudType and density, varied by a smooth field of weather over a few kilometres (weatherVariation), and then takes each of the sky's weatherRegions in turn: inside a region's radius its values hold, and across its falloff they blend into what surrounds it, so a storm over one valley and clear sky over the next stand in one frame with a gradual edge between them.

The map is a few hundred texels on a side, so a change to the weather fills it again in a fraction of a millisecond; the raymarcher reads it every frame.

Bindings (see bindings.yaml): out_map (storage3d rgba16f, width x 1 x depth) and U (the layout is stated at the top of shader.wgsl).