diff options
Diffstat (limited to 'Components/src/ShadowMapManager.cpp')
| -rw-r--r-- | Components/src/ShadowMapManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Components/src/ShadowMapManager.cpp b/Components/src/ShadowMapManager.cpp index 10ec39f..404f3e3 100644 --- a/Components/src/ShadowMapManager.cpp +++ b/Components/src/ShadowMapManager.cpp @@ -170,7 +170,7 @@ void ShadowMapManager::DistributeCascades(const DistributeCascadeInfo& Info, LightSpaceY = cross(LightSpaceZ, LightSpaceX); LightSpaceX = cross(LightSpaceY, LightSpaceZ); LightSpaceX = normalize(LightSpaceX); - LightSpaceY = normalize(LightSpaceY); + LightSpaceY = normalize(LightSpaceY) * (Info.RightHandedLightViewTransform ? +1.f : -1.f); float4x4 WorldToLightViewSpaceMatr = float4x4::ViewFromBasis(LightSpaceX, LightSpaceY, LightSpaceZ); |
