Fixed issue #470.

This commit is contained in:
Branimir Karadžić 2015-08-07 10:37:02 -07:00
parent a302555bdc
commit 6d8cf6a000

View File

@ -337,18 +337,21 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bx::mtxMul(lightMtx, mtxBunny, mtxShadow);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(bunny, &state[0], 1, mtxBunny);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(bunny, &state[1], 1, mtxBunny);
// Hollow cube.
bx::mtxMul(lightMtx, mtxHollowcube, mtxShadow);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(hollowcube, &state[0], 1, mtxHollowcube);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(hollowcube, &state[1], 1, mtxHollowcube);
// Cube.
bx::mtxMul(lightMtx, mtxCube, mtxShadow);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(cube, &state[0], 1, mtxCube);
bgfx::setUniform(u_lightMtx, lightMtx);
meshSubmit(cube, &state[1], 1, mtxCube);
// Advance to next frame. Rendering thread will be kicked to