Renderer · interface

IndirectRay

One indirect ray, as the shading path hands it over.

Explained in Hello world.

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

Properties

NameTypeDescription
pointreadonlyReadonlyVec3Where it starts, on the surface being shaded.
normalreadonlyReadonlyVec3That surface's normal, which both traces lift off along.
directionreadonlyReadonlyVec3
coneAnglereadonlynumberCone half-angle for the world trace. Zero is a mirror; wider is a rougher surface.