diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-06 09:53:52 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-06 09:53:52 +0100 |
| commit | a5229022b0e500ac86560e585081f45293e587d2 (patch) | |
| tree | be7794f508748a1380e08c205e80306708a1614f /assets/final/BASS_SYNTH_1.spec | |
| parent | c23f3b9030a508212ffe22d9fa88b7484721174a (diff) | |
fix(shaders): Correct plane distance scaling for non-uniform transforms
When a plane has non-uniform scaling (e.g., floor with scale 20,0.01,20),
transforming points to local space distorts SDF distances. For a horizontal
plane with Y-scale of 0.01, distances become 100x too large in local space.
Fix: Multiply plane distances by the scale factor along the normal direction
(Y component for horizontal planes). This corrects shadow calculations while
maintaining the large floor area needed for visualization.
Reverted incorrect uniform scale fix (c23f3b9) that made floor too small.
Diffstat (limited to 'assets/final/BASS_SYNTH_1.spec')
0 files changed, 0 insertions, 0 deletions
