Material3DFile constructor
const
Material3DFile({
- Material3DKind kind = Material3DKind.lit,
- int color = 0xFFFFFFFF,
- double metallic = 0,
- double roughness = 0.75,
- int emission = 0xFF000000,
- double emissionStrength = 1,
- Material3DAlpha alpha = Material3DAlpha.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,
- Material3DUv uv = Material3DUv.natural,
- List<
String> layers = const [], - String parent = '',
- Set<
String> overrides = const {},
A material with every value given, or its default: a white, rough, solid, lit surface with no maps, and no parent.
Implementation
const Material3DFile({
this.kind = Material3DKind.lit,
this.color = 0xFFFFFFFF,
this.metallic = 0,
this.roughness = 0.75,
this.emission = 0xFF000000,
this.emissionStrength = 1,
this.alpha = Material3DAlpha.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 = Material3DUv.natural,
this.layers = const [],
this.parent = '',
this.overrides = const {},
});