Renderer · interface
IndirectRay
One indirect ray, as the shading path hands it over.
Explained in Hello world.
interface IndirectRayimport type { IndirectRay } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
pointreadonly | ReadonlyVec3 | Where it starts, on the surface being shaded. |
normalreadonly | ReadonlyVec3 | That surface's normal, which both traces lift off along. |
directionreadonly | ReadonlyVec3 | |
coneAnglereadonly | number | Cone half-angle for the world trace. Zero is a mirror; wider is a rougher surface. |