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;