Просмотр исходного кода

Fix: effect not refreshed correctly in some cases

Popov72 5 лет назад
Родитель
Сommit
bf5bb2cd85
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Materials/standardMaterial.ts

+ 1 - 1
src/Materials/standardMaterial.ts

@@ -289,7 +289,7 @@ export class StandardMaterial extends PushMaterial {
     /**
      * Does the transparency come from the diffuse texture alpha channel.
      */
-    @expandToProperty("_markAllSubMeshesAsTexturesDirty")
+    @expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")
     public useAlphaFromDiffuseTexture: boolean;
 
     @serialize("useEmissiveAsIllumination")