MaterialData constructor
const
MaterialData({
- String? name,
- (double, double, double, double) baseColor = (1.0, 1.0, 1.0, 1.0),
- TextureRef? baseColorTexture,
- double metallic = 1.0,
- double roughness = 1.0,
- TextureRef? metallicRoughnessTexture,
- TextureRef? normalTexture,
- double normalScale = 1.0,
- TextureRef? occlusionTexture,
- double occlusionStrength = 1.0,
- (double, double, double) emissive = (0.0, 0.0, 0.0),
- TextureRef? emissiveTexture,
- double emissiveStrength = 1.0,
- AlphaMode alphaMode = AlphaMode.opaque,
- double alphaCutoff = 0.5,
- bool doubleSided = false,
- bool unlit = false,
- UvMode uvMode = UvMode.natural,
- bool layered = false,
- (double, double, double, double) layerTiling = (1.0, 1.0, 1.0, 1.0),
A material; defaults are the glTF spec's.
Implementation
const MaterialData({
this.name,
this.baseColor = const (1.0, 1.0, 1.0, 1.0),
this.baseColorTexture,
this.metallic = 1.0,
this.roughness = 1.0,
this.metallicRoughnessTexture,
this.normalTexture,
this.normalScale = 1.0,
this.occlusionTexture,
this.occlusionStrength = 1.0,
this.emissive = const (0.0, 0.0, 0.0),
this.emissiveTexture,
this.emissiveStrength = 1.0,
this.alphaMode = AlphaMode.opaque,
this.alphaCutoff = 0.5,
this.doubleSided = false,
this.unlit = false,
this.uvMode = UvMode.natural,
this.layered = false,
this.layerTiling = const (1.0, 1.0, 1.0, 1.0),
});