summaryrefslogtreecommitdiffstats
path: root/Components/src/ShadowMapManager.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-09 02:56:26 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-09 02:56:26 +0000
commit6e5db3d78f803ac4144e96c2c779f13dc18b490a (patch)
tree110f1409bfd4d1340285472388c6364c01889333 /Components/src/ShadowMapManager.cpp
parentAdded RightHandedLightViewTransform parameter to DistributeCascadeInfo (diff)
downloadDiligentFX-6e5db3d78f803ac4144e96c2c779f13dc18b490a.tar.gz
DiligentFX-6e5db3d78f803ac4144e96c2c779f13dc18b490a.zip
Renamed RightHandedLightViewTransform to UseRightHandedLightViewTransform
Diffstat (limited to 'Components/src/ShadowMapManager.cpp')
-rw-r--r--Components/src/ShadowMapManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Components/src/ShadowMapManager.cpp b/Components/src/ShadowMapManager.cpp
index 404f3e3..e795159 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) * (Info.RightHandedLightViewTransform ? +1.f : -1.f);
+ LightSpaceY = normalize(LightSpaceY) * (Info.UseRightHandedLightViewTransform ? +1.f : -1.f);
float4x4 WorldToLightViewSpaceMatr =
float4x4::ViewFromBasis(LightSpaceX, LightSpaceY, LightSpaceZ);