From 6d8cf6a00006ff133b182f214ece10e7f88859a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 7 Aug 2015 10:37:02 -0700 Subject: [PATCH] Fixed issue #470. --- examples/15-shadowmaps-simple/shadowmaps_simple.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index 4c9d9343..c361c860 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/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