Primitive3D constructor
Primitive3D({
- String material = '',
- Color color = defaultColor,
- double metallic = 0.0,
- double roughness = 0.75,
- Color emission = const Color(0xFF000000),
- double emissionStrength = 1.0,
- double opacity = 1.0,
- bool unlit = false,
- String texture = '',
- Vector2? tiling,
- bool tileInMetres = false,
- bool castShadows = true,
- bool visible = true,
A shape with the given look; the defaults are a light grey, slightly rough, untextured surface.
Implementation
Primitive3D({
this.material = '',
this.color = defaultColor,
this.metallic = 0.0,
this.roughness = 0.75,
this.emission = const Color(0xFF000000),
this.emissionStrength = 1.0,
this.opacity = 1.0,
this.unlit = false,
this.texture = '',
Vector2? tiling,
this.tileInMetres = false,
this.castShadows = true,
this.visible = true,
}) : tiling = tiling ?? Vector2(1, 1);