Fix incorrect offset on 4 point softness modes

This commit is contained in:
Jarrod Doyle 2025-01-14 19:24:25 +00:00
parent 9bf80b1b5f
commit 74b175648b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ public class LightMapper
return mode switch return mode switch
{ {
SoftnessMode.LowFourPoint or SoftnessMode.MediumFourPoint or SoftnessMode.HighFourPoint => ( SoftnessMode.LowFourPoint or SoftnessMode.MediumFourPoint or SoftnessMode.HighFourPoint => (
[-texU - texV, -texU - texV, -texU + texV, texU + texV], [-texU - texV, texU - texV, -texU + texV, texU + texV],
[0.25f, 0.25f, 0.25f, 0.25f]), [0.25f, 0.25f, 0.25f, 0.25f]),
SoftnessMode.MediumFivePoint or SoftnessMode.HighFivePoint => ( SoftnessMode.MediumFivePoint or SoftnessMode.HighFivePoint => (
[Vector3.Zero, -texU - texV, texU - texV, -texU + texV, texU + texV], [Vector3.Zero, -texU - texV, texU - texV, -texU + texV, texU + texV],