From 5fc7f4fc7e8cd8c61e29f61f80a044f58cde333f Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 8 Feb 2020 18:50:02 -0800 Subject: Added RightHandedLightViewTransform parameter to DistributeCascadeInfo --- Components/src/ShadowMapManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Components/src/ShadowMapManager.cpp') 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); -- cgit v1.2.3