Renderer · interface
ReflectiveSample
A reflective surface, as a shading path holds one.
Explained in Hello world.
interface ReflectiveSampleimport type { ReflectiveSample } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
pointreadonly | ReadonlyVec3 | |
normalreadonly | ReadonlyVec3 | |
viewreadonly | ReadonlyVec3 | Which way the eye is looking, toward the surface. Need not be unit length. |
roughnessreadonly | number | 0 is a mirror, 1 is fully diffuse. See reflectionCone. |