@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / normalizeEnvironmentLighting
Function: normalizeEnvironmentLighting() ​
ts
function normalizeEnvironmentLighting(value):
| Required<EnvironmentLightingState>
| undefined;Defined in: components/Environment.ts:253
Normalize a lighting block to a complete EnvironmentLightingState. Returns undefined when value is not an object, so a scene without the block stays without it.
Parameters ​
| Parameter | Type |
|---|---|
value | unknown |
Returns ​
| Required<EnvironmentLightingState> | undefined

