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): IndirectResultimport { traceIndirect } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
ray | IndirectRay | |
resources | GiResources | |
out | IndirectResult |
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.