@pmndrs/reflections
    Preparing search index...

    Class ReflectionProbe

    A local reflection volume. Add it to a ReflectionProbes container. The volumes are world-axis-aligned boxes centred on the probe; they follow its world position and scale (probeWorldScale). Rotation is ignored, the probe's own and its parents': the boxes stay aligned with the world axes. Each size (x, y, z) is scaled by the world length of the probe's local axis of the same name, so a probe turned 90 degrees under a non-uniformly scaled parent gets that parent's scale along the axis it now points at, not along the world axis it lies on.

    Hierarchy

    • Object3D
      • ReflectionProbe
    Index
    blendDistance: number = 0.5

    Distance over which the influence fades in from the volume's faces.

    influenceSize: Vector3

    Size of the influence volume. Surfaces inside it use this probe.

    isReflectionProbe: true
    originOffset: Vector3 = ...

    Where the probe captures from, relative to the centre of its volumes (not in #35046; Godot's origin_offset). Default zero: capture from the centre. Box projection still uses the volumes as placed, so a room's box can stay on its walls while the capture point moves to where it sees the most of the room. Scaled with the probe like the volume sizes; rotation is ignored.

    projectionOffset: Vector3 = ...

    Offset of the projection box's centre from the probe (#35046), scaled with the probe like the volume sizes; rotation is ignored. Use it when the capture point isn't at the room's centre: the probe (and its influence volume) stays where it captures, the box moves onto the walls. originOffset is the converse: the volumes stay, the capture point moves. Both can be set.

    projectionSize: Vector3 | null = null

    Size of the box reflections are projected onto, usually the room's walls. null uses influenceSize.

    resolution: number | null = null

    This probe's cube face size (not in #35046; D4700): null (default) takes the set's BakeOptions.resolution. Rounded down to a power of two, at least 64, like it. Probes of each size share one atlas (a set holds up to 4 sizes, the set default's atlas first): a 512 px probe for a polished floor beside 256 px room probes costs one 512 px cube, not 4x the set. Sizing: the sharpest surface that samples the probe, the detail it must hold (a thin emissive, a sign) and how near it is; see BakeOptions.resolution for memory and bake time. Changing it re-bakes the set on the next bake.

    • Copies the given object into this object.

      Parameters

      • source: this
      • Optionalrecursive: boolean

        If set to true, descendants of the object are copied next to the existing ones. If set to false, descendants are left unchanged. Default is true.

      Returns ReflectionProbe

      Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.