OptionalcubeOptionaldenoiserA temporal reflection denoiser, e.g. (device, { roughnessThreshold }) => new FfxReflectionDenoiser(device, { roughnessThreshold: roughnessThreshold ** 2 }) from denoiser/ffx (FFX compares alpha, perceptual
roughness squared). Or an instance made on this renderer's device. Default none.
OptionalgbufferOptions for the G-buffer (FrameGBufferOptions): e.g. { width, height } to render below the canvas size for an
upscaler after the composite. Default: the renderer's drawing-buffer size, lit: 'auto'.
OptionalpresetA named preset (core REFLECTION_PRESETS, docs/SETTINGS.md "Presets"): 'default' or 'performance'. Default 'default'.
OptionalprobeCube face size of the automatic probe. Default 256 (128 with the 'performance' preset).
OptionalprobesWhat fills the reflection where the screen has no hit. true (default): one probe sized to the
scene's bounds, baked once at create() (call bake() after the scene or its environment changes);
a ReflectionProbes set you built and baked yourself is used as is; false: the scene's
environment alone. A real project usually places a probe per room, true is the quick start.
OptionalrayRay-traced fallback for rays the screen cannot answer, through @pmndrs/raytracer and @pmndrs/bvh (optional peers: install both).
true: every visible mesh of the scene, a BVH built once at create() (static meshes; for moving
ones use reflections.trace.refit() each frame). An array: only these objects. Default false.
Ray tracing degrades, with one console warning, to screen space + probes when it can't run: the package isn't
installed, or the device has too few storage buffers per shader stage for the traced pass (W89, D5451).
OptionalsettingsOverrides over the preset's tracer settings (core ScreenSpaceReflectionsSettings, docs/SETTINGS.md).
OptionaltimestampsPer-pass GPU timestamps, read with reflections.ssr.readTimings(); needs the 'timestamp-query' feature. Default false.
Install the cube-array shim for the probes on three r187 (default true; harmless where three has cube arrays).