Renderer · function

traceIndirect

Trace one indirect ray down the chain, and always answer.

Explained in Hello world.

function traceIndirect(ray: IndirectRay, resources: GiResources, out: IndirectResult): IndirectResult
import { traceIndirect } from '@driftengine/core';

Parameters

ParameterTypeDescription
rayIndirectRay
resourcesGiResources
outIndirectResult

In depth

The screen answers as much as its distance from the edge of the frame allows; what is left goes to the world field, as much as its distance from the edge of the outermost cascade allows; and whatever is left after that goes to the probes, which have nothing behind them and take it all.