EnvironmentVolumeComponent constructor

EnvironmentVolumeComponent({
  1. required EnvironmentSettings settings,
  2. EnvironmentVolumeShape shape = EnvironmentVolumeShape.box,
  3. Vector3? extents,
  4. double radius = 5.0,
  5. double blendDistance = 1.0,
  6. double priority = 0.0,
  7. double weight = 1.0,
})

Creates a volume contributing settings over the region described by shape/extents/radius.

Implementation

EnvironmentVolumeComponent({
  required this.settings,
  this.shape = EnvironmentVolumeShape.box,
  Vector3? extents,
  this.radius = 5.0,
  this.blendDistance = 1.0,
  this.priority = 0.0,
  this.weight = 1.0,
}) : extents = extents ?? Vector3.all(5.0);