Package | away3d.materials.lightpickers |
Class | public class LightPickerBase |
Inheritance | LightPickerBase NamedAssetBase flash.events.EventDispatcher |
Implements | IAsset |
Subclasses | StaticLightPicker |
See also
Property | Defined By | ||
---|---|---|---|
allPickedLights : Vector.<LightBase> [read-only]
A collection of all the collected lights. | LightPickerBase | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | LightPickerBase | ||
castingDirectionalLights : Vector.<DirectionalLight> [read-only]
The collected directional lights that cast shadows to be used for shading. | LightPickerBase | ||
castingPointLights : Vector.<PointLight> [read-only]
The collected point lights that cast shadows to be used for shading. | LightPickerBase | ||
directionalLights : Vector.<DirectionalLight> [read-only]
The collected directional lights to be used for shading. | LightPickerBase | ||
id : String | NamedAssetBase | ||
lightProbes : Vector.<LightProbe> [read-only]
The collected light probes to be used for shading. | LightPickerBase | ||
lightProbeWeights : Vector.<Number> [read-only]
The weights for each light probe, defining their influence on the object. | LightPickerBase | ||
name : String | NamedAssetBase | ||
numCastingDirectionalLights : uint [read-only]
The maximum amount of directional lights that cast shadows. | LightPickerBase | ||
numCastingPointLights : uint [read-only]
The amount of point lights that cast shadows. | LightPickerBase | ||
numDirectionalLights : uint [read-only]
The maximum amount of directional lights that will be provided. | LightPickerBase | ||
numLightProbes : uint [read-only]
The maximum amount of light probes that will be provided. | LightPickerBase | ||
numPointLights : uint [read-only]
The maximum amount of point lights that will be provided. | LightPickerBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
pointLights : Vector.<PointLight> [read-only]
The collected point lights to be used for shading. | LightPickerBase |
Property | Defined By | ||
---|---|---|---|
_allPickedLights : Vector.<LightBase> | LightPickerBase | ||
_castingDirectionalLights : Vector.<DirectionalLight> | LightPickerBase | ||
_castingPointLights : Vector.<PointLight> | LightPickerBase | ||
_directionalLights : Vector.<DirectionalLight> | LightPickerBase | ||
_lightProbes : Vector.<LightProbe> | LightPickerBase | ||
_lightProbeWeights : Vector.<Number> | LightPickerBase | ||
_numCastingDirectionalLights : uint | LightPickerBase | ||
_numCastingPointLights : uint | LightPickerBase | ||
_numDirectionalLights : uint | LightPickerBase | ||
_numLightProbes : uint | LightPickerBase | ||
_numPointLights : uint | LightPickerBase | ||
_pointLights : Vector.<PointLight> | LightPickerBase |
Method | Defined By | ||
---|---|---|---|
Creates a new LightPickerBase object. | LightPickerBase | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
Updates set of lights for a given renderable and EntityCollector. | LightPickerBase | ||
dispose():void
Disposes resources used by the light picker. | LightPickerBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
_allPickedLights | property |
protected var _allPickedLights:Vector.<LightBase>
_castingDirectionalLights | property |
protected var _castingDirectionalLights:Vector.<DirectionalLight>
_castingPointLights | property |
protected var _castingPointLights:Vector.<PointLight>
_directionalLights | property |
protected var _directionalLights:Vector.<DirectionalLight>
_lightProbes | property |
protected var _lightProbes:Vector.<LightProbe>
_lightProbeWeights | property |
protected var _lightProbeWeights:Vector.<Number>
_numCastingDirectionalLights | property |
protected var _numCastingDirectionalLights:uint
_numCastingPointLights | property |
protected var _numCastingPointLights:uint
_numDirectionalLights | property |
protected var _numDirectionalLights:uint
_numLightProbes | property |
protected var _numLightProbes:uint
_numPointLights | property |
protected var _numPointLights:uint
_pointLights | property |
protected var _pointLights:Vector.<PointLight>
allPickedLights | property |
allPickedLights:Vector.<LightBase>
[read-only] A collection of all the collected lights.
public function get allPickedLights():Vector.<LightBase>
assetType | property |
assetType:String
[read-only] The type of the asset.
public function get assetType():String
castingDirectionalLights | property |
castingDirectionalLights:Vector.<DirectionalLight>
[read-only] The collected directional lights that cast shadows to be used for shading.
public function get castingDirectionalLights():Vector.<DirectionalLight>
castingPointLights | property |
castingPointLights:Vector.<PointLight>
[read-only] The collected point lights that cast shadows to be used for shading.
public function get castingPointLights():Vector.<PointLight>
directionalLights | property |
directionalLights:Vector.<DirectionalLight>
[read-only] The collected directional lights to be used for shading.
public function get directionalLights():Vector.<DirectionalLight>
lightProbes | property |
lightProbes:Vector.<LightProbe>
[read-only] The collected light probes to be used for shading.
public function get lightProbes():Vector.<LightProbe>
lightProbeWeights | property |
lightProbeWeights:Vector.<Number>
[read-only] The weights for each light probe, defining their influence on the object.
public function get lightProbeWeights():Vector.<Number>
numCastingDirectionalLights | property |
numCastingDirectionalLights:uint
[read-only] The maximum amount of directional lights that cast shadows.
public function get numCastingDirectionalLights():uint
numCastingPointLights | property |
numCastingPointLights:uint
[read-only] The amount of point lights that cast shadows.
public function get numCastingPointLights():uint
numDirectionalLights | property |
numDirectionalLights:uint
[read-only] The maximum amount of directional lights that will be provided.
public function get numDirectionalLights():uint
numLightProbes | property |
numLightProbes:uint
[read-only] The maximum amount of light probes that will be provided.
public function get numLightProbes():uint
numPointLights | property |
numPointLights:uint
[read-only] The maximum amount of point lights that will be provided.
public function get numPointLights():uint
pointLights | property |
pointLights:Vector.<PointLight>
[read-only] The collected point lights to be used for shading.
public function get pointLights():Vector.<PointLight>
LightPickerBase | () | Constructor |
public function LightPickerBase()
Creates a new LightPickerBase object.
collectLights | () | method |
public function collectLights(renderable:IRenderable, entityCollector:EntityCollector):void
Updates set of lights for a given renderable and EntityCollector. Always call super.collectLights() after custom overridden code.
Parameters
renderable:IRenderable | |
entityCollector:EntityCollector |
dispose | () | method |
public function dispose():void
Disposes resources used by the light picker.