Procházet zdrojové kódy

Factor material.alpha in the global alpha value

Popov72 před 4 roky
rodič
revize
6e4e270772
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Lights/Shadows/shadowGenerator.ts

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

@@ -1134,7 +1134,7 @@ export class ShadowGenerator implements IShadowGenerator {
             }
 
             if (isTransparent && this.enableSoftTransparentShadow) {
-                effect.setFloat("softTransparentShadowSM", effectiveMesh.visibility);
+                effect.setFloat("softTransparentShadowSM", effectiveMesh.visibility * material.alpha);
             }
 
             if (shadowDepthWrapper) {