Renderer · interface

FieldLight

What the bake reads of a light, which a PointLightSource already carries.

Explained in Hello world.

interface FieldLight extends LightReach
import type { FieldLight } from '@driftengine/core';

Properties

NameTypeDescription
rreadonlynumber
greadonlynumber
breadonlynumber
sourceRadiusreadonlynumberThe emitter's physical radius, which widens its penumbra.
falloffExponentreadonlyoptionalnumberIts own falloff exponent, overriding the frame's above zero. See pointLightShape.