From b655ee94aea8e529bc8383f159161605cec7b6b6 Mon Sep 17 00:00:00 2001 From: Lunkhound Date: Fri, 15 Jan 2016 14:54:56 -0800 Subject: [PATCH] shadowmaps_simple: fix OGL shadow camera volume --- examples/15-shadowmaps-simple/shadowmaps_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index 502577ca..848c9400 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp @@ -274,7 +274,7 @@ int _main_(int _argc, char** _argv) bx::mtxLookAt(lightView, eye, at); const float area = 30.0f; - bx::mtxOrtho(lightProj, -area, area, -area, area, -100.0f, 100.0f); + bx::mtxOrtho(lightProj, -area, area, -area, area, -100.0f, 100.0f, 0.0f, flipV); bgfx::setViewRect(RENDER_SHADOW_PASS_ID, 0, 0, shadowMapSize, shadowMapSize); bgfx::setViewFrameBuffer(RENDER_SHADOW_PASS_ID, shadowMapFB);