summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubeScene/src
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-04 02:53:52 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-04 02:53:52 +0000
commitf05923d155f48fcc576df3d5cf900a55eac0ac14 (patch)
treebbb7189024a55bf3a7f1a2722af815c790ead0e4 /unityplugin/GhostCubeScene/src
parentFixed typo in readme (diff)
downloadDiligentEngine-f05923d155f48fcc576df3d5cf900a55eac0ac14.tar.gz
DiligentEngine-f05923d155f48fcc576df3d5cf900a55eac0ac14.zip
Fixed rotations
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
index e65d083..cbed56c 100644
--- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
+++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
@@ -142,7 +142,7 @@ void GhostCubeScene::OnGraphicsInitialized()
void GhostCubeScene::Update(double CurrTime, double ElapsedTime)
{
- m_CubeWorldView = scaleMatrix(1, 2, 1) * rotationY(-static_cast<float>(CurrTime) * 2.0f) * rotationX(-PI_F * 0.3f) * translationMatrix(0.f, 0.0f, 10.0f);
+ m_CubeWorldView = scaleMatrix(1, 2, 1) * rotationY(static_cast<float>(CurrTime) * 2.0f) * rotationX(PI_F * 0.3f) * translationMatrix(0.f, 0.0f, 10.0f);
}
@@ -199,7 +199,7 @@ void GhostCubeScene::Render(UnityRenderingEvent RenderEventFunc)
pCtx->CommitShaderResources(m_pMirrorSRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
{
- float4x4 MirrorWorldView = scaleMatrix(5,5,5) * rotationX(PI_F*0.6f) * translationMatrix(0.f, -3.0f, 10.0f);
+ float4x4 MirrorWorldView = scaleMatrix(5,5,5) * rotationX(-PI_F*0.6f) * translationMatrix(0.f, -3.0f, 10.0f);
float NearPlane = 0.3f;
float FarPlane = 1000.f;
if (ReverseZ)