Renderer · interface

FrameReflections

How the frame's materials reflect it. Every field optional; see DEFAULT_FRAME_REFLECTIONS.

Explained in Hello world.

interface FrameReflections
import type { FrameReflections } from '@driftengine/core';

Properties

NameTypeDescription
maxRoughnessreadonlyoptionalnumberThe roughness past which a surface reflects the probes alone, faded over the last quarter.
reachMreadonlyoptionalnumberHow far a ray travels before it gives up, in metres.
thicknessMreadonlyoptionalnumberHow deep a depth sample is believed to be, in metres. See ScreenSpaceMarch.thicknessM.
stepsreadonlyoptionalnumberSamples along a ray, at most 32.
blurreadonlyoptionalnumberHow far a fully rough reflection is smeared, as a share of the frame's height.