@pmndrs/reflections
    Preparing search index...

    Function applyReflectionsPreset

    • Apply preset name at runtime. Layers, lowest first: the app's own construction settings (ssr.presetBase; the denoiser's hit source as the app built it), the package defaults where the app set nothing, the preset, then overrides. Every key any preset names (core REFLECTION_PRESET_KEYS) is rebuilt from those layers, so 'performance' -> 'default' returns to where the app started; other keys keep their current values. Drops history. When resolutionChanged is true the app must rebuild its own composites (hybrid.composite()), as after any reflectionResolution change (warned once); the hybrid rebuilds its own passes on the next update(). A target with a rebuild() (a Reflections: applyReflectionsPreset(reflections, name)) is rebuilt here instead, with no warning. At construction, pass preset to ScreenSpaceReflectionsPass and HybridReflections instead (there the app's settings win over the preset). An unknown name warns once and changes nothing.

      Parameters

      Returns ReflectionsPreset & { resolutionChanged: boolean }