API

Class LightConstants

Defines the cross module constantsused by lights to avoid circular dependencies

Index
FALLOFF_DEFAULT: 0

Falloff Default: light is falling off following the material specification: standard material is using standard falloff whereas pbr material can request special falloff per materials.

FALLOFF_GLTF: 2

Falloff gltf: light is falling off as described in the gltf moving to PBR document to enhance interoperability with other engines.

FALLOFF_PHYSICAL: 1

Falloff Physical: light is falling off following the inverse squared distance law.

FALLOFF_STANDARD: 3

Falloff Standard: light is falling off like in the standard material to enhance interoperability with other materials.

INTENSITYMODE_AUTOMATIC: 0

Each light type uses the default quantity according to its type: point/spot lights use luminous intensity directional lights use illuminance

INTENSITYMODE_ILLUMINANCE: 3

lux (lm/m^2)

INTENSITYMODE_LUMINANCE: 4

nit (cd/m^2)

INTENSITYMODE_LUMINOUSINTENSITY: 2

candela (lm/sr)

INTENSITYMODE_LUMINOUSPOWER: 1

lumen (lm)

LIGHTMAP_DEFAULT: 0

If every light affecting the material is in this lightmapMode, material.lightmapTexture adds or multiplies (depends on material.useLightmapAsShadowmap) after every other light calculations.

LIGHTMAP_SHADOWSONLY: 2

material.lightmapTexture as only lighting no light calculation from this light only adds dynamic shadows from this light

LIGHTMAP_SPECULAR: 1

material.lightmapTexture as only diffuse lighting from this light adds only specular lighting from this light adds dynamic shadows

LIGHTTYPEID_CLUSTERED_CONTAINER: 5

Light type const id of the clustered light.

LIGHTTYPEID_DIRECTIONALLIGHT: 1

Light type const id of the directional light.

LIGHTTYPEID_HEMISPHERICLIGHT: 3

Light type const id of the hemispheric light.

LIGHTTYPEID_POINTLIGHT: 0

Light type const id of the point light.

LIGHTTYPEID_RECT_AREALIGHT: 4

Light type const id of the area light.

LIGHTTYPEID_SPOTLIGHT: 2

Light type const id of the spot light.