Skip to content

@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 ​

ParameterType
valueunknown

Returns ​

| Required<EnvironmentLightingState> | undefined