diff --git a/examples/15-shadowmaps-simple/fs_sms_shadow.sh b/examples/15-shadowmaps-simple/fs_sms_shadow.sh index 50c6d01c..f3a88945 100644 --- a/examples/15-shadowmaps-simple/fs_sms_shadow.sh +++ b/examples/15-shadowmaps-simple/fs_sms_shadow.sh @@ -7,10 +7,10 @@ uniform vec4 u_lightPos; #if SHADOW_PACKED_DEPTH -SAMPLER2D(u_shadowMap, 4); +SAMPLER2D(u_shadowMap, 0); # define Sampler sampler2D #else -SAMPLER2DSHADOW(u_shadowMap, 4); +SAMPLER2DSHADOW(u_shadowMap, 0); # define Sampler sampler2DShadow #endif // SHADOW_PACKED_DEPTH diff --git a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp index 7b118b47..5e393629 100644 --- a/examples/15-shadowmaps-simple/shadowmaps_simple.cpp +++ b/examples/15-shadowmaps-simple/shadowmaps_simple.cpp @@ -118,7 +118,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) const bgfx::Caps* caps = bgfx::getCaps(); // Shadow samplers are supported at least partially supported if texture // compare less equal feature is supported. - bool shadowSamplerSupported = 0 != (caps->supported & BGFX_CAPS_TEXTURE_COMPARE_LEQUAL); + bool shadowSamplerSupported = 0 != (caps->supported & BGFX_CAPS_TEXTURE_COMPARE_LEQUAL) && false; bgfx::ProgramHandle progShadow; bgfx::ProgramHandle progMesh; @@ -178,7 +178,7 @@ int _main_(int /*_argc*/, char** /*_argv*/) state[1]->m_viewId = RENDER_SCENE_PASS_ID; state[1]->m_numTextures = 1; state[1]->m_textures[0].m_flags = UINT32_MAX; - state[1]->m_textures[0].m_stage = 4; + state[1]->m_textures[0].m_stage = 0; state[1]->m_textures[0].m_sampler = u_shadowMap; state[1]->m_textures[0].m_texture = shadowMapTexture; diff --git a/examples/runtime/shaders/dx11/fs_sms_mesh.bin b/examples/runtime/shaders/dx11/fs_sms_mesh.bin index 611b9b60..f229f53d 100644 Binary files a/examples/runtime/shaders/dx11/fs_sms_mesh.bin and b/examples/runtime/shaders/dx11/fs_sms_mesh.bin differ diff --git a/examples/runtime/shaders/dx11/fs_sms_mesh_pd.bin b/examples/runtime/shaders/dx11/fs_sms_mesh_pd.bin index cdfe1122..e8f4de89 100644 Binary files a/examples/runtime/shaders/dx11/fs_sms_mesh_pd.bin and b/examples/runtime/shaders/dx11/fs_sms_mesh_pd.bin differ diff --git a/examples/runtime/shaders/dx9/fs_sms_mesh.bin b/examples/runtime/shaders/dx9/fs_sms_mesh.bin index 5230d24b..e63fbd84 100644 Binary files a/examples/runtime/shaders/dx9/fs_sms_mesh.bin and b/examples/runtime/shaders/dx9/fs_sms_mesh.bin differ diff --git a/examples/runtime/shaders/dx9/fs_sms_mesh_pd.bin b/examples/runtime/shaders/dx9/fs_sms_mesh_pd.bin index 28266aab..65baabc4 100644 Binary files a/examples/runtime/shaders/dx9/fs_sms_mesh_pd.bin and b/examples/runtime/shaders/dx9/fs_sms_mesh_pd.bin differ