mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
shadowmaps_simple: fix OGL shadow camera volume
This commit is contained in:
parent
5e061f4395
commit
b655ee94ae
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue