OptionalenvironmentOptionalenvironmentDefault: the scene's environmentIntensity at render() (1 if trace() is called directly).
OptionallightsLight traced hits with the scene's visible directional and hemisphere lights too (Lambert; up
to 4 + 2), gathered at render(). Directional lights are shadowed by one ray each through the
provider (settings.hitShadows, default on; every traced mesh casts, castShadow is not read);
hemisphere lights and the environment are not. Default true.
OptionalprobesReflection probes the hit shading lights hits with (the lookup at the hit along N at roughness
1, the environment slot for the rest; D901), instead of the environment's hemisphere mean.
Default: the scene's, when scene.environmentNode is reflectionProbes(probes) at render()
(what three lights the same surfaces with on screen). null: always the environment.
The BVH walk, e.g. (await createRaytracerTraceProviderFromObjects(pass.device, meshes)).provider.
OptionalraytracerW82 (T70, D5201): shade traced hits with @pmndrs/raytracer's one bounce (rtShade: emission + light samples with
a shadow ray each, through its diffuse + GGX BSDF) instead of the probe / environment lookup. Opt-in: the default
stays the probes. Needs the provider from createRaytracerTraceProviderFromObjects (capabilities.hitShade; it binds
7 storage buffers with the packed scene copy, D5450, so WebGPU's default 8 suffice); with another provider it warns once
and the probes shade. Stochastic (one light sample per hit per frame): meant for a denoised frame. true = 1 sample;
{ samples } = more. The on-screen re-shade (settings.hitShading) keeps the probes either way.
OptionalsettingsRay budget, length cap, origin offset, on-screen reuse, hit shadows.
Environment the hit shading lights hits with (an equirect 2-D texture or a CubeTexture). Default: the scene's
environmentatrender(); black if none.