PlanarReflectorComponent constructor

PlanarReflectorComponent({
  1. double resolutionScale = 0.5,
  2. int layerMask = kRenderLayerAll,
  3. int reflectionGroupId = -1,
  4. double clipBias = 1e-3,
  5. Vector3? localNormal,
})

Creates a planar reflector for the mirror surface at the owning node.

Implementation

PlanarReflectorComponent({
  this.resolutionScale = 0.5,
  this.layerMask = kRenderLayerAll,
  this.reflectionGroupId = -1,
  this.clipBias = 1e-3,
  Vector3? localNormal,
}) : localNormal = localNormal ?? Vector3(0, 1, 0),
     assert(
       resolutionScale > 0.0 && resolutionScale.isFinite,
       'resolutionScale must be a positive, finite number.',
     );