GltfMaterial constructor

GltfMaterial({
  1. String? name,
  2. GltfPbrMetallicRoughness? pbrMetallicRoughness,
  3. GltfTextureInfo? normalTexture,
  4. GltfTextureInfo? occlusionTexture,
  5. GltfTextureInfo? emissiveTexture,
  6. List<double> emissiveFactor = const [0.0, 0.0, 0.0],
  7. String alphaMode = 'OPAQUE',
  8. double alphaCutoff = 0.5,
  9. bool doubleSided = false,
  10. 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,
});