Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LightConstants

Defines the cross module constantsused by lights to avoid circular dependencies

Hierarchy

  • LightConstants

Index

Properties

Static Readonly FALLOFF_DEFAULTSearch playground for FALLOFF_DEFAULT

FALLOFF_DEFAULT: number

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.

Static Readonly FALLOFF_GLTFSearch playground for FALLOFF_GLTF

FALLOFF_GLTF: number

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

Static Readonly FALLOFF_PHYSICALSearch playground for FALLOFF_PHYSICAL

FALLOFF_PHYSICAL: number

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

Static Readonly FALLOFF_STANDARDSearch playground for FALLOFF_STANDARD

FALLOFF_STANDARD: number

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

Static Readonly INTENSITYMODE_AUTOMATICSearch playground for INTENSITYMODE_AUTOMATIC

INTENSITYMODE_AUTOMATIC: number

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

Static Readonly INTENSITYMODE_ILLUMINANCESearch playground for INTENSITYMODE_ILLUMINANCE

INTENSITYMODE_ILLUMINANCE: number

lux (lm/m^2)

Static Readonly INTENSITYMODE_LUMINANCESearch playground for INTENSITYMODE_LUMINANCE

INTENSITYMODE_LUMINANCE: number

nit (cd/m^2)

Static Readonly INTENSITYMODE_LUMINOUSINTENSITYSearch playground for INTENSITYMODE_LUMINOUSINTENSITY

INTENSITYMODE_LUMINOUSINTENSITY: number

candela (lm/sr)

Static Readonly INTENSITYMODE_LUMINOUSPOWERSearch playground for INTENSITYMODE_LUMINOUSPOWER

INTENSITYMODE_LUMINOUSPOWER: number

lumen (lm)

Static Readonly LIGHTMAP_DEFAULTSearch playground for LIGHTMAP_DEFAULT

LIGHTMAP_DEFAULT: number

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

Static Readonly LIGHTMAP_SHADOWSONLYSearch playground for LIGHTMAP_SHADOWSONLY

LIGHTMAP_SHADOWSONLY: number

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

Static Readonly LIGHTMAP_SPECULARSearch playground for LIGHTMAP_SPECULAR

LIGHTMAP_SPECULAR: number

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

Static Readonly LIGHTTYPEID_DIRECTIONALLIGHTSearch playground for LIGHTTYPEID_DIRECTIONALLIGHT

LIGHTTYPEID_DIRECTIONALLIGHT: number

Light type const id of the directional light.

Static Readonly LIGHTTYPEID_HEMISPHERICLIGHTSearch playground for LIGHTTYPEID_HEMISPHERICLIGHT

LIGHTTYPEID_HEMISPHERICLIGHT: number

Light type const id of the hemispheric light.

Static Readonly LIGHTTYPEID_POINTLIGHTSearch playground for LIGHTTYPEID_POINTLIGHT

LIGHTTYPEID_POINTLIGHT: number

Light type const id of the point light.

Static Readonly LIGHTTYPEID_SPOTLIGHTSearch playground for LIGHTTYPEID_SPOTLIGHT

LIGHTTYPEID_SPOTLIGHT: number

Light type const id of the spot light.

Methods

Static CompareLightsPrioritySearch playground for CompareLightsPriority

  • Sort function to order lights for rendering.

    Parameters

    Returns number

    -1 to reduce's a's index relative to be, 0 for no change, 1 to increase a's index relative to b.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method