Browse Source

Small fix

Popov72 5 năm trước cách đây
mục cha
commit
8b69d1f4bb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/Lights/Shadows/shadowGenerator.ts

+ 2 - 2
src/Lights/Shadows/shadowGenerator.ts

@@ -1107,10 +1107,10 @@ export class ShadowGenerator implements IShadowGenerator {
 
                 // Clip planes
                 MaterialHelper.BindClipPlane(effect, scene);
-
-                this._bindCustomEffectForRenderSubMeshForShadowMap(subMesh, effect);
             }
 
+            this._bindCustomEffectForRenderSubMeshForShadowMap(subMesh, effect);
+
             if (this.forceBackFacesOnly) {
                 engine.setState(true, 0, false, true);
             }