Sphere3D constructor

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

A ball 1 m across by default.

Implementation

Sphere3D({
  this.radius = 0.5,
  this.segments = 32,
  this.rings = 16,
  this.smooth = true,
  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,
});