mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed issue #470.
This commit is contained in:
parent
a302555bdc
commit
6d8cf6a000
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue