mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Found by the probe regression run on the first lighting probes: - The normal stays as the world matrix leaves it, and N.L and N.H are scaled by its GE reciprocal length, like the spot direction. Exact with scaled, sheared and rotated world matrices (gpu/probe exp3). - A negative factor (a spot pointing away with cutoff -1) scales the light by 0 instead of subtracting (exp3, exp4). - Shade mapping UVs use the same GE arithmetic as lighting (exp2-4). - The half vector uses the GE's add. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
To get to 100% compatibility, we will need a software renderer as there are games out there that do tricks that can't really be faked in a sensible way. Useful for homebrew too that mix sw and accel rendering.