summaryrefslogtreecommitdiffstats
path: root/src/render/ShadowCamera.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-07-30 00:32:21 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-07-30 00:32:21 +0200
commite2ded2d6ceaf3dcf183701074ea572de0bdb672e (patch)
treeb09a02f76e84d8c99e85d39137529324b1b49d37 /src/render/ShadowCamera.cpp
parentUpdate RwHelper.cpp (diff)
downloadre3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar.gz
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar.bz2
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar.lz
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar.xz
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.tar.zst
re3-e2ded2d6ceaf3dcf183701074ea572de0bdb672e.zip
Diffstat (limited to '')
-rw-r--r--src/render/ShadowCamera.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/render/ShadowCamera.cpp b/src/render/ShadowCamera.cpp
index 82d10a88..8258b943 100644
--- a/src/render/ShadowCamera.cpp
+++ b/src/render/ShadowCamera.cpp
@@ -144,12 +144,10 @@ CShadowCamera::SetLight(RpLight *light)
RwMatrix *lightMatrix = RwFrameGetMatrix(lightFrame);
*RwMatrixGetRight(camMatrix) = *RwMatrixGetRight(lightMatrix);
- *RwMatrixGetUp(camMatrix) = *RwMatrixGetUp(lightMatrix);
- *RwMatrixGetAt(camMatrix) = *RwMatrixGetAt(lightMatrix);
+ *RwMatrixGetUp(camMatrix) = *RwMatrixGetUp(lightMatrix);
+ *RwMatrixGetAt(camMatrix) = *RwMatrixGetAt(lightMatrix);
- //RwMatrixCopy(RwFrameGetMatrix(camFrame), RwFrameGetMatrix(lightFrame));
-
- RwMatrixUpdate(RwFrameGetMatrix(camFrame));
+ RwMatrixUpdate(camMatrix);
RwFrameUpdateObjects(camFrame);
return m_pCamera;