toonLight.shaderModule
- .metadata144 B
- README.md866 B
- module.wgsl4.9 KB
README.md
toonLight (shader module)
The toon light model every toonBlocks light block and the toonLit material share: tl_band_level and tl_band_light (hard light bands, any count), tl_ramp (five-stop colour ramp, blended or stepped), tl_wrap (half-Lambert wrap-around light), tl_rim (rim light on either side), tl_highlight (a hard-edged stylized highlight), tl_presence (zero light stays zero), tl_hue_rotate and tl_saturate. Pure math with no bindings, so a full-frame block and a material shade by exactly the same rules. Include it with #include "~toonBlocks.shaders.toonLight".
Known limits
- A pass reads the scene's depth only when it also writes the scene picture (#24550), and an unknown blend name draws as replace (#24551).
- A per-object value cannot reach a geometry pass (#24549).
The package README's Known limits lists the rest.