浏览代码

Small fix

Popov72 5 年之前
父节点
当前提交
8b69d1f4bb
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
             }