@pmndrs/reflections
    Preparing search index...

    Class ReflectionProbesNode

    Radiance from a baked ReflectionProbes set. Without inputs it is an environment node: assign it to scene.environmentNode. With inputs it samples at the given world position, direction and roughness (see sampleReflectionProbes). With coverage: true it returns vec4( radiance, coverage ) without environment fallback (see reflectionProbesLocal). Bake the probes before creating it.

    Hierarchy

    • Node
      • ReflectionProbesNode
    Index
    aoNode: any = null
    coverage: boolean

    Whether the output is vec4( radiance, coverage ) without environment fallback.

    directionNode: any = null
    distanceRoughness: boolean | undefined

    The lookup's own distanceRoughness / roughnessLerp; undefined: the set's.

    frameIrradianceNode: any = null
    lodMapping: ProbeLodMapping | undefined

    The lookup's own lodMapping; undefined: the set's.

    normalNode: any = null
    positionNode: any = null

    Explicit lookup inputs; null ones come from the material (environment node).

    refit: boolean | undefined

    The explicit refit option; undefined: on exactly when frameIrradianceNode is set.

    roughnessLerp: boolean | undefined
    roughnessNode: any = null
    viewNode: any = null
    • Represents the setup stage which is the first step of the build process, see Node#build method. This method is often overwritten in derived modules to prepare the node which is used as a node's output/result. If an output node is prepared, then it must be returned in the return statement of the derived module's setup function.

      Parameters

      • builder: any

        The current node builder.

      Returns any

      The output node.

    • The method can be implemented to update the node's internal state before it is used to render an object. The Node#updateBeforeType property defines how often the update is executed.

      Parameters

      • Optionalframe: { renderId: number }

        A reference to the current node frame.

      Returns undefined

      An optional bool that indicates whether the implementation actually performed an update or not (e.g. due to caching).