Browse Source

shadowmaps_simple: fix OGL shadow camera volume

Lunkhound 10 years ago
parent
commit
b655ee94ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/15-shadowmaps-simple/shadowmaps_simple.cpp

+ 1 - 1
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);