From c8f1157f3b2158cfe2796bf30059a3ceceb53c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 16 Apr 2015 21:26:46 -0700 Subject: [PATCH] Fixed 15-shadowmaps-simple example. --- examples/15-shadowmaps-simple/shadowmaps_simple.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index 9f7124c35..35eade7c6 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp @@ -262,8 +262,8 @@ int _main_(int /*_argc*/, char** /*_argv*/) float lightProj[16]; eye[0] = -lightPos[0]; - eye[0] = -lightPos[1]; - eye[0] = -lightPos[2]; + eye[1] = -lightPos[1]; + eye[2] = -lightPos[2]; at[0] = 0.0f; at[1] = 0.0f;