PR #235 also enable light culling plane by flag

This commit is contained in:
dexy
2024-07-18 14:05:49 +10:00
Unverified
parent 29530a05f6
commit d049e3ad1c
15 changed files with 1401 additions and 1053 deletions
@@ -4505,11 +4505,8 @@ namespace CodeWalker.GameFiles
case LightType.Point:
return Quaternion.Identity;
case LightType.Spot:
tx = Vector3.Normalize(Tangent);
ty = Vector3.Normalize(Vector3.Cross(Direction, Tangent));
break;
case LightType.Capsule:
tx = -Vector3.Normalize(Tangent);
tx = Vector3.Normalize(Tangent);
ty = Vector3.Normalize(Vector3.Cross(Direction, Tangent));
break;
}