Constants
On this page
Random Strategies
const RANDOM_PCG: ObjectUncorrelated pseudo random samples. Converges slowest but never shows structured artifacts.
const RANDOM_SOBOL: ObjectSobol low discrepancy samples, scrambled per pixel. Converges faster than RANDOM_PCG.
const RANDOM_BLUE_DITHER: ObjectThe same Sobol sequence for every pixel, offset by a blue noise dither so early frames read as smooth grain rather than clumped noise. The default.
Transmissive Background Modes
const TRANSMISSIVE_BACKGROUND_ENVIRONMENT: numberSample the environment map, so glass shows what is behind it.
const TRANSMISSIVE_BACKGROUND_OVERLAY: numberSet the opacity from the transmitted light intensity, tinted by the environment lighting.
const TRANSMISSIVE_BACKGROUND_TRANSPARENT: numberAttenuate the background by the transmitted light, so glass renders against transparency.