|
@@ -56,22 +56,27 @@ namespace BabylonExport.Entities
|
|
|
|
|
|
public BabylonShaderMaterial()
|
|
|
{
|
|
|
- this.customType = "BABYLON.ShaderMaterial";
|
|
|
- this.shaderPath = null;
|
|
|
- this.options = new BabylonShaderOptions();
|
|
|
- this.textures = new Dictionary<string, object>();
|
|
|
- this.textureArrays = new Dictionary<string, object[]>();
|
|
|
- this.floats = new Dictionary<string, object>();
|
|
|
- this.floatArrays = new Dictionary<string, object[]>();
|
|
|
- this.colors3 = new Dictionary<string, object>();
|
|
|
- this.colors4 = new Dictionary<string, object>();
|
|
|
- this.vectors2 = new Dictionary<string, object>();
|
|
|
- this.vectors3 = new Dictionary<string, object>();
|
|
|
- this.vectors4 = new Dictionary<string, object>();
|
|
|
- this.matrices = new Dictionary<string, object>();
|
|
|
- this.matrices2x2 = new Dictionary<string, object>();
|
|
|
- this.matrices3x3 = new Dictionary<string, object>();
|
|
|
- this.vectors3Arrays = new Dictionary<string, object[]>();
|
|
|
+ SetCustomType("BABYLON.ShaderMaterial");
|
|
|
+ shaderPath = null;
|
|
|
+ options = new BabylonShaderOptions();
|
|
|
+ textures = new Dictionary<string, object>();
|
|
|
+ textureArrays = new Dictionary<string, object[]>();
|
|
|
+ floats = new Dictionary<string, object>();
|
|
|
+ floatArrays = new Dictionary<string, object[]>();
|
|
|
+ colors3 = new Dictionary<string, object>();
|
|
|
+ colors4 = new Dictionary<string, object>();
|
|
|
+ vectors2 = new Dictionary<string, object>();
|
|
|
+ vectors3 = new Dictionary<string, object>();
|
|
|
+ vectors4 = new Dictionary<string, object>();
|
|
|
+ matrices = new Dictionary<string, object>();
|
|
|
+ matrices2x2 = new Dictionary<string, object>();
|
|
|
+ matrices3x3 = new Dictionary<string, object>();
|
|
|
+ vectors3Arrays = new Dictionary<string, object[]>();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void SetCustomType(string type)
|
|
|
+ {
|
|
|
+ customType = type;
|
|
|
}
|
|
|
}
|
|
|
|