Package | flare.materials.filters |
Class | public class LightFilter |
Inheritance | LightFilter ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
ambientColor : Vector3D | LightFilter | ||
![]() | animated : Boolean
Gets or sets whatever the filter is animated or not. | FLSLFilter | |
![]() | blendMode : String
Gets or sets the mode how to blend between this and the last filter. | FLSLFilter | |
![]() | byteCode : ByteArray
Returns the byte code used for this filter. | FLSLFilter | |
intensity : Number | LightFilter | ||
maxDirectionalLights : int | LightFilter | ||
maxPointLights : int | LightFilter | ||
![]() | name : String [read-only]
Gets the filter program name. | FLSLFilter | |
![]() | namespace : String [read-only]
Gets the filter program namespace. | FLSLFilter | |
![]() | params : Array
A dynamic property that contains all parameters (FilterValue class) of the filter. | FLSLFilter | |
![]() | techniqueName : String
Sets or gets the technique to use for this filter. | FLSLFilter | |
![]() | techniques : Vector.<String> [read-only]
Gets all thecniques availables on the filter. | FLSLFilter | |
![]() | textures : Array
A dynamic property that contains all textures (FilterTexture class) of the filter. | FLSLFilter |
Method | Defined By | ||
---|---|---|---|
LightFilter(techniqueName:String, maxPointLights:int = 0, maxDirectionalLights:int = 1) | LightFilter | ||
clear():void | LightFilter | ||
![]() |
Creates and returns a copy of the filter. | FLSLFilter | |
![]() | createTechnique(name:String, vertexFunctions:Array = null, fragmentFunctions:Array = null):void
Creates a new dynamic technique. | FLSLFilter | |
![]() | deleteTechnique(name:String):void
Deletes a previously defined technique. | FLSLFilter | |
![]() | dispose():void | FLSLFilter | |
![]() | dispose():void [static] | FLSLFilter | |
LightFilter | |||
![]() | update():void
Update all filter parameters and send the changed values to all subscribed materials. | FLSLFilter |
Constant | Defined By | ||
---|---|---|---|
![]() | CHANGE_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 |
ambientColor | property |
ambientColor:Vector3D
public function get ambientColor():Vector3D
public function set ambientColor(value:Vector3D):void
intensity | property |
intensity:Number
public function get intensity():Number
public function set intensity(value:Number):void
maxDirectionalLights | property |
maxDirectionalLights:int
public function get maxDirectionalLights():int
public function set maxDirectionalLights(value:int):void
maxPointLights | property |
maxPointLights:int
public function get maxPointLights():int
public function set maxPointLights(value:int):void
LightFilter | () | Constructor |
public function LightFilter(techniqueName:String, maxPointLights:int = 0, maxDirectionalLights:int = 1)
techniqueName:String (default = NaN )
| |
maxPointLights:int (default = 0 )
| |
maxDirectionalLights:int (default = 1 )
|
clear | () | method |
public function clear():void
push | () | method |
LINEAR | Constant |
public static const LINEAR:String = linear
NO_LIGHTS | Constant |
public static const NO_LIGHTS:String = noLights
PER_VERTEX | Constant |
public static const PER_VERTEX:String = perVertex
SAMPLED | Constant |
public static const SAMPLED:String = sampled