Packageflare.materials.filters
Classpublic class LightFilter
InheritanceLightFilter Inheritance FLSLFilter Inheritance flash.events.EventDispatcher

...



Public Properties
 PropertyDefined By
  ambientColor : Vector3D
LightFilter
 Inheritedanimated : Boolean
Gets or sets whatever the filter is animated or not.
FLSLFilter
 InheritedblendMode : String
Gets or sets the mode how to blend between this and the last filter.
FLSLFilter
 InheritedbyteCode : ByteArray
Returns the byte code used for this filter.
FLSLFilter
  intensity : Number
LightFilter
  maxDirectionalLights : int
LightFilter
  maxPointLights : int
LightFilter
 Inheritedname : String
[read-only] Gets the filter program name.
FLSLFilter
 Inheritednamespace : String
[read-only] Gets the filter program namespace.
FLSLFilter
 Inheritedparams : Array
A dynamic property that contains all parameters (FilterValue class) of the filter.
FLSLFilter
 InheritedtechniqueName : String
Sets or gets the technique to use for this filter.
FLSLFilter
 Inheritedtechniques : Vector.<String>
[read-only] Gets all thecniques availables on the filter.
FLSLFilter
 Inheritedtextures : Array
A dynamic property that contains all textures (FilterTexture class) of the filter.
FLSLFilter
Public Methods
 MethodDefined By
  
LightFilter(techniqueName:String, maxPointLights:int = 0, maxDirectionalLights:int = 1)
LightFilter
  
clear():void
LightFilter
 Inherited
Creates and returns a copy of the filter.
FLSLFilter
 Inherited
createTechnique(name:String, vertexFunctions:Array = null, fragmentFunctions:Array = null):void
Creates a new dynamic technique.
FLSLFilter
 Inherited
deleteTechnique(name:String):void
Deletes a previously defined technique.
FLSLFilter
 Inherited
dispose():void
FLSLFilter
 Inherited
dispose():void
[static]
FLSLFilter
  
push(light:Light3D):void
LightFilter
 Inherited
update():void
Update all filter parameters and send the changed values to all subscribed materials.
FLSLFilter
Events
 Event Summary Defined By
 InheritedThis event occurs whenever the technique or blendMode has changed.FLSLFilter
Public Constants
 ConstantDefined By
 InheritedCHANGE_TECHNIQUE : String = changeTechnique
[static]
FLSLFilter
  LINEAR : String = linear
[static]
LightFilter
  NO_LIGHTS : String = noLights
[static]
LightFilter
  PER_VERTEX : String = perVertex
[static]
LightFilter
  SAMPLED : String = sampled
[static]
LightFilter
Property Detail
ambientColorproperty
ambientColor:Vector3D


Implementation
    public function get ambientColor():Vector3D
    public function set ambientColor(value:Vector3D):void
intensityproperty 
intensity:Number


Implementation
    public function get intensity():Number
    public function set intensity(value:Number):void
maxDirectionalLightsproperty 
maxDirectionalLights:int


Implementation
    public function get maxDirectionalLights():int
    public function set maxDirectionalLights(value:int):void
maxPointLightsproperty 
maxPointLights:int


Implementation
    public function get maxPointLights():int
    public function set maxPointLights(value:int):void
Constructor Detail
LightFilter()Constructor
public function LightFilter(techniqueName:String, maxPointLights:int = 0, maxDirectionalLights:int = 1)



Parameters
techniqueName:String (default = NaN)
 
maxPointLights:int (default = 0)
 
maxDirectionalLights:int (default = 1)
Method Detail
clear()method
public function clear():void

push()method 
public function push(light:Light3D):void

Parameters

light:Light3D

Constant Detail
LINEARConstant
public static const LINEAR:String = linear

NO_LIGHTSConstant 
public static const NO_LIGHTS:String = noLights

PER_VERTEXConstant 
public static const PER_VERTEX:String = perVertex

SAMPLEDConstant 
public static const SAMPLED:String = sampled