mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 17:14:44 +08:00
PR #235 also enable light culling plane by flag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user