From e27d75a690d49f563cb7d124125c5837c4fcd6c7 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Thu, 30 Jan 2014 19:44:37 +0100 Subject: [PATCH] Small fix. --- examples/14-shadowvolumes/shadowvolumes.cpp | 1 + examples/16-shadowmaps/shadowmaps.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index 6a4cc4f95..ab9e0dc62 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -2171,6 +2171,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) float initialPos[3] = { 3.0f, 20.0f, -58.0f }; cameraSetPosition(initialPos); cameraSetVerticalAngle(-0.25f); + cameraUpdate(0.0f); cameraGetViewMtx(viewState.m_view); entry::MouseState mouseState; diff --git a/examples/16-shadowmaps/shadowmaps.cpp b/examples/16-shadowmaps/shadowmaps.cpp index 3f824caa9..ec738426f 100644 --- a/examples/16-shadowmaps/shadowmaps.cpp +++ b/examples/16-shadowmaps/shadowmaps.cpp @@ -2095,6 +2095,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) float initialPos[3] = { 0.0f, 60.0f, -105.0f }; cameraSetPosition(initialPos); cameraSetVerticalAngle(-0.45f); + cameraUpdate(0.0f); // Set view and projection matrices. const float camFovy = 60.0f;