GltfMaterial constructor
GltfMaterial({
- String? name,
- GltfPbrMetallicRoughness? pbrMetallicRoughness,
- GltfTextureInfo? normalTexture,
- GltfTextureInfo? occlusionTexture,
- GltfTextureInfo? emissiveTexture,
- List<
double> emissiveFactor = const [0.0, 0.0, 0.0], - String alphaMode = 'OPAQUE',
- double alphaCutoff = 0.5,
- bool doubleSided = false,
- bool unlit = false,
Implementation
GltfMaterial({
this.name,
this.pbrMetallicRoughness,
this.normalTexture,
this.occlusionTexture,
this.emissiveTexture,
this.emissiveFactor = const [0.0, 0.0, 0.0],
this.alphaMode = 'OPAQUE',
this.alphaCutoff = 0.5,
this.doubleSided = false,
this.unlit = false,
});