Class AreaLightAbstract
Hierarchy (View Summary)
- WebXRSpatialLayerType
- AreaLight
Constructors
constructor
-
Creates a area light object. Documentation : https://doc.babylonjs.com/features/featuresDeepDive/lights/lights_introduction
Parameters
- name: string
The friendly name of the light
- position: Vector3
The position of the area light.
Optionalscene: anyThe scene the light belongs to
OptionaldontAddToScene: booleanTrue to not add the light to the scene
Returns AreaLight
- name: string
Methods
_ is Ready
-
Returns boolean
prepare Light Specific Defines
-
Prepares the list of defines specific to the light type.
Parameters
- defines: any
the list of defines
- lightIndex: number
defines the index of the light for the effect
Returns void
- defines: any
transfer Textures To Effect
-
Parameters
- effect: Effect
- lightIndex: string
Returns Light
Abstract Area Light class that servers as parent for all Area Lights implementations. The light is emitted from the area in the -Z direction.