Browse Source

Fixed issue #470.

Branimir Karadžić 10 years ago
parent
commit
6d8cf6a000
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/15-shadowmaps-simple/shadowmaps_simple.cpp

+ 3 - 0
examples/15-shadowmaps-simple/shadowmaps_simple.cpp

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