sebavan 5 anni fa
parent
commit
521b189306
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Materials/PBR/pbrMaterial.ts

+ 1 - 1
src/Materials/PBR/pbrMaterial.ts

@@ -196,7 +196,7 @@ export class PBRMaterial extends PBRBaseMaterial {
      */
     @serializeAsTexture()
     @expandToProperty("_markAllSubMeshesAsTexturesDirty")
-    public metallicReflectanceTexture: BaseTexture;
+    public metallicReflectanceTexture: Nullable<BaseTexture>;
 
     /**
      * Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.