shadow_bias.shaderModule
- README.md818 B
- module.wgsl11.9 KB
This package holds more than this page lists. See all of its files in its world.
README.md
shadow_bias
The shadow-bias math: how far a receiver is pushed off its own surface before projecting into light space, and how much depth is subtracted from the comparison. Every value derives from the bound map's resolution and the light's own projection, so the acne/peter-panning balance tracks the shadow settings actually in use.
Pure math — no bindings, no textures, no uniforms. Every shadow lookup takes its bias from here, which is what makes a surface bias identically whichever path draws it.
The module is engine-owned (zero::shadow_bias): the engine's shadow lookups
call it and its page marking requests the pages its normal offset reaches, so
every program composes the engine's own copy of it, and a copy a world holds is
set aside.
#include "@builtin::shaderModules.shadow_bias"