MaterialT constructor
MaterialT({
- MaterialType type = MaterialType.kUnlit,
- ColorT? baseColorFactor,
- int baseColorTexture = -1,
- double metallicFactor = 0.0,
- double roughnessFactor = 0.5,
- int metallicRoughnessTexture = -1,
- double normalScale = 1.0,
- int normalTexture = -1,
- Vec3T? emissiveFactor,
- int emissiveTexture = -1,
- double occlusionStrength = 1.0,
- int occlusionTexture = -1,
Implementation
MaterialT({
this.type = MaterialType.kUnlit,
this.baseColorFactor,
this.baseColorTexture = -1,
this.metallicFactor = 0.0,
this.roughnessFactor = 0.5,
this.metallicRoughnessTexture = -1,
this.normalScale = 1.0,
this.normalTexture = -1,
this.emissiveFactor,
this.emissiveTexture = -1,
this.occlusionStrength = 1.0,
this.occlusionTexture = -1});