Cube3D constructor

Cube3D({
  1. double width = 1.0,
  2. double height = 1.0,
  3. double depth = 1.0,
  4. String material = '',
  5. Color color = defaultColor,
  6. double metallic = 0.0,
  7. double roughness = 0.75,
  8. Color emission = const Color(0xFF000000),
  9. double emissionStrength = 1.0,
  10. double opacity = 1.0,
  11. bool unlit = false,
  12. String texture = '',
  13. Vector2? tiling,
  14. bool tileInMetres = false,
  15. bool castShadows = true,
  16. bool visible = true,
})

A box, 1 m each way by default.

Implementation

Cube3D({
  this.width = 1.0,
  this.height = 1.0,
  this.depth = 1.0,
  super.material,
  super.color,
  super.metallic,
  super.roughness,
  super.emission,
  super.emissionStrength,
  super.opacity,
  super.unlit,
  super.texture,
  super.tiling,
  super.tileInMetres,
  super.castShadows,
  super.visible,
});