Log inGet started
World

Painted Metropolis

Branchmain
Commit1e1d3a3d4d

README.md

light

The painterly.surface.light shader module provides the lighting model for all built architectural surfaces in the Painted Valley style. It integrates with painterly.core.valleyShade to ensure consistent lighting across the world, including sun/moon, sky, bounce light, and haze, all synchronized with the time of day. Shaders that include this module can use builtHour() to get time-of-day parameters, builtSun() to calculate direct sunlight (considering shade maps and cloud cover), builtTones() to apply sun or cool shade tints to local colors, and builtLamps() to incorporate local point and spot lights. It requires the shared block and tShade textures to be declared in the material properties.