PlanarReflectorComponent constructor
PlanarReflectorComponent({})
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.',
);