diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-07-30 00:32:21 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-07-30 00:32:21 +0200 |
commit | e2ded2d6ceaf3dcf183701074ea572de0bdb672e (patch) | |
tree | b09a02f76e84d8c99e85d39137529324b1b49d37 /src/render/ShadowCamera.cpp | |
parent | Update RwHelper.cpp (diff) | |
download | re3-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.cpp | 8 |
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; |