occluders.computeShader
This compute shader generates an occluder map for the `painterly.core.shade` module. For each texel of the terrain, it computes the absolute altitude of the ground and the highest point of any standing object (roofs, tree canopies) at that location. Roofs and canopies are provide…
occluders
This compute shader generates an occluder map for the painterly.core.shade module. For each texel of the terrain, it computes the absolute altitude of the ground and the highest point of any standing object (roofs, tree canopies) at that location. Roofs and canopies are provided as rasterized altitude data from the CPU. The shader outputs an rgba16f texture where r is the ground's altitude, g is the highest top's altitude, b is a flag indicating if the top is a canopy (1) or solid (0), and a is 1. This map is then used by painterly.core.shadeCast to compute ambient shade.
Scoped to this part · feeds back into the world's score.