| Package | flare.materials.flsl |
| Class | public class FLSLFilter |
| Inheritance | FLSLFilter flash.events.EventDispatcher |
| Subclasses | AlphaMaskFilter, ColorFilter, ColorParticleFilter, EnvironmentFilter, FogFilter, LightFilter, NormalMapFilter, PlanarFilter, SpecularFilter, SpecularMapFilter, TextureFilter, VertexColorFilter |
| Property | Defined By | ||
|---|---|---|---|
| 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 | ||
| 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 | ||
|---|---|---|---|
FLSLFilter(byteCode:ByteArray = null, blendMode:String, techniqueName:String = null)
Creates a new FLSL (Flare3D Layer Shader Language) Filter. | FLSLFilter | ||
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 | ||
update():void
Update all filter parameters and send the changed values to all subscribed materials. | FLSLFilter | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| This event occurs whenever the technique or blendMode has changed. | FLSLFilter | |||
| Constant | Defined By | ||
|---|---|---|---|
| CHANGE_TECHNIQUE : String = changeTechnique [static] | FLSLFilter | ||
| animated | property |
public var animated:BooleanGets or sets whatever the filter is animated or not.
| blendMode | property |
blendMode:StringGets or sets the mode how to blend between this and the last filter. This property only has effect if there exist a previous filter that affect the fragment (pixel) shader.
public function get blendMode():String public function set blendMode(value:String):void| byteCode | property |
byteCode:ByteArrayReturns the byte code used for this filter.
public function get byteCode():ByteArray public function set byteCode(value:ByteArray):void| name | property |
name:String [read-only] Gets the filter program name.
public function get name():String| namespace | property |
namespace:String [read-only] Gets the filter program namespace.
public function get namespace():String| params | property |
public var params:ArrayA dynamic property that contains all parameters (FilterValue class) of the filter.
| techniqueName | property |
techniqueName:StringSets or gets the technique to use for this filter. You can get all available techniques for some filter using the techniques:Vector String property
public function get techniqueName():String public function set techniqueName(value:String):voidSee also
| techniques | property |
techniques:Vector.<String> [read-only] Gets all thecniques availables on the filter.
public function get techniques():Vector.<String>See also
| textures | property |
public var textures:ArrayA dynamic property that contains all textures (FilterTexture class) of the filter.
| FLSLFilter | () | Constructor |
public function FLSLFilter(byteCode:ByteArray = null, blendMode:String, techniqueName:String = null)Creates a new FLSL (Flare3D Layer Shader Language) Filter.
ParametersbyteCode:ByteArray (default = null) — The generated byte code.
| |
blendMode:String (default = NaN) — If the filter affect the fragment shader, how the blend this filter with the previous filters.
| |
techniqueName:String (default = null) — The technique to use for the filter. If it is not specified, takes the first one.
|
| clone | () | method |
public function clone():FLSLFilterCreates and returns a copy of the filter.
ReturnsFLSLFilter — The new cloned fitler.
|
| createTechnique | () | method |
public function createTechnique(name:String, vertexFunctions:Array = null, fragmentFunctions:Array = null):voidCreates a new dynamic technique.
Parameters
name:String — The name of the new technique.
| |
vertexFunctions:Array (default = null) — An indexed Array of strings that contains all vertex functions names and parameters to use.
| |
fragmentFunctions:Array (default = null) — An indexed Array of strings that contains all fragment functions names and parameters to use.
|
| deleteTechnique | () | method |
public function deleteTechnique(name:String):voidDeletes a previously defined technique.
Parameters
name:String — The name of the technique to delete.
|
| dispose | () | method |
public function dispose():void| dispose | () | method |
public static function dispose():void| update | () | method |
public function update():voidUpdate all filter parameters and send the changed values to all subscribed materials.
| changeTechnique | Event |
flash.events.Eventflash.events.EventThis event occurs whenever the technique or blendMode has changed.
See also
| CHANGE_TECHNIQUE | Constant |
public static const CHANGE_TECHNIQUE:String = changeTechnique