MaterialFile constructor
const
MaterialFile({
- MaterialKind kind = MaterialKind.lit,
- int color = 0xFFFFFFFF,
- double metallic = 0,
- double roughness = 0.75,
- int emission = 0xFF000000,
- double emissionStrength = 1,
- MaterialAlpha alpha = MaterialAlpha.opaque,
- double opacity = 1,
- double alphaCutoff = 0.5,
- bool unlit = false,
- bool doubleSided = false,
- String colorMap = '',
- String metalRoughMap = '',
- String normalMap = '',
- String occlusionMap = '',
- String emissionMap = '',
- double normalScale = 1,
- double occlusionStrength = 1,
- double tilingX = 1,
- double tilingY = 1,
- double offsetX = 0,
- double offsetY = 0,
- double rotation = 0,
- MaterialUv uv = MaterialUv.natural,
- List<
String> layers = const [], - String parent = '',
- 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 {},
});