Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

README.md

overhead_openness

How much of the sky a point in the air sees past the surfaces standing over it, read from the overhead cover map (overheadCover). A pass binds the map as overhead_map (a texture2d) and calls zero_overhead_openness(p, eye) with the point and the position of the camera the map was drawn for.

The answer is the share of the sky left clear straight up and in two rings of six directions around it, at 60 and 15 degrees of elevation: a point under a crown or a roof reads near 0, a point in a clearing near 1, and a point off the map 1, fading to it over the map's outer 24 units.

Included with #include "@builtin::systems.skyVisibility.overhead_openness".