![]() # Objective fix error with pbr shader's spotlight direction calculation when direction.y ~= 0 ## Solution in pbr_lighting.wgsl, clamp `1-x^2-z^2` to `>= 0` so that we can safely `sqrt` it |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |
![]() # Objective fix error with pbr shader's spotlight direction calculation when direction.y ~= 0 ## Solution in pbr_lighting.wgsl, clamp `1-x^2-z^2` to `>= 0` so that we can safely `sqrt` it |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |