MaterialFile constructor

const MaterialFile({
  1. MaterialKind kind = MaterialKind.lit,
  2. int color = 0xFFFFFFFF,
  3. double metallic = 0,
  4. double roughness = 0.75,
  5. int emission = 0xFF000000,
  6. double emissionStrength = 1,
  7. MaterialAlpha alpha = MaterialAlpha.opaque,
  8. double opacity = 1,
  9. double alphaCutoff = 0.5,
  10. bool unlit = false,
  11. bool doubleSided = false,
  12. String colorMap = '',
  13. String metalRoughMap = '',
  14. String normalMap = '',
  15. String occlusionMap = '',
  16. String emissionMap = '',
  17. double normalScale = 1,
  18. double occlusionStrength = 1,
  19. double tilingX = 1,
  20. double tilingY = 1,
  21. double offsetX = 0,
  22. double offsetY = 0,
  23. double rotation = 0,
  24. MaterialUv uv = MaterialUv.natural,
  25. List<String> layers = const [],
  26. String parent = '',
  27. Set<String> overrides = const {},
})

Implementation

const MaterialFile({
  this.kind = MaterialKind.lit,
  this.color = 0xFFFFFFFF,
  this.metallic = 0,
  this.roughness = 0.75,
  this.emission = 0xFF000000,
  this.emissionStrength = 1,
  this.alpha = MaterialAlpha.opaque,
  this.opacity = 1,
  this.alphaCutoff = 0.5,
  this.unlit = false,
  this.doubleSided = false,
  this.colorMap = '',
  this.metalRoughMap = '',
  this.normalMap = '',
  this.occlusionMap = '',
  this.emissionMap = '',
  this.normalScale = 1,
  this.occlusionStrength = 1,
  this.tilingX = 1,
  this.tilingY = 1,
  this.offsetX = 0,
  this.offsetY = 0,
  this.rotation = 0,
  this.uv = MaterialUv.natural,
  this.layers = const [],
  this.parent = '',
  this.overrides = const {},
});