Pārlūkot izejas kodu

Custom PBR Material Subclass Support

Support for setting the private ‘customType’ property for subclasses
MackeyK24 8 gadi atpakaļ
vecāks
revīzija
30af777e15

+ 5 - 0
Exporters/3ds Max/BabylonExport.Entities/BabylonPBRMaterial.cs

@@ -209,5 +209,10 @@ namespace BabylonExport.Entities
             overloadedEmissive = new[] {1f, 1f, 1f };
             overloadedEmissive = new[] {1f, 1f, 1f };
             overloadedReflection = new[] { 1f, 1f, 1f };
             overloadedReflection = new[] { 1f, 1f, 1f };
         }
         }
+
+        public void SetCustomType(string type)
+        {
+            this.customType = type;
+        }
     }
     }
 }
 }