Creates a new LightPickerBase object.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
A collection of all the collected lights.
The collected directional lights that cast shadows to be used for shading.
The collected point lights that cast shadows to be used for shading.
The collected directional lights to be used for shading.
The weights for each light probe, defining their influence on the object.
The collected light probes to be used for shading.
The maximum amount of directional lights that cast shadows.
The amount of point lights that cast shadows.
The maximum amount of directional lights that will be provided.
The maximum amount of light probes that will be provided.
The maximum amount of point lights that will be provided.
The collected point lights to be used for shading.
Add an event listener
Updates set of lights for a given renderable and EntityCollector. Always call super.collectLights() after custom overridden code.
Dispatch an event
Disposes resources used by the light picker.
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
LightPickerBase provides an abstract base clase for light picker classes. These classes are responsible for feeding materials with relevant lights. Usually, StaticLightPicker can be used, but LightPickerBase can be extended to provide more application-specific dynamic selection of lights.
StaticLightPicker