Renderer · interface
LightFieldOptions
Explained in Hello world.
interface LightFieldOptionsimport type { LightFieldOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
falloffreadonly | PointLightFalloff | How the renderer shades a point light, which the sum has to match. |
spacingreadonlyoptional | number | Metres between samples; a third of a metre by default, so a brick spans a metre. |
fieldsreadonlyoptional | readonly GlobalFieldInstance[] | The scene's placed distance fields, which occlude the light. None leaves it unoccluded. |
bandreadonlyoptional | number | Metres over which exact and summed light crossfade at the shading radius. Two by default. |
fadeSecreadonlyoptional | number | Seconds the summed light fades in over once the field is whole, FIELD_FADE_SEC by default.
Zero for a field baked behind a loading screen, which has nothing on screen to pop and may be
stepped by a clock that has stopped. |