shadowmaps_simple: fix OGL shadow camera volume

This commit is contained in:
Lunkhound 2016-01-15 14:54:56 -08:00
parent 5e061f4395
commit b655ee94ae

View file

@ -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);