Package | away3d.core.filter |
Class | public class FogFilter |
Inheritance | FogFilter Object |
Implements | IPrimitiveFilter |
Property | Defined By | ||
---|---|---|---|
material : ColorMaterial
Defines the material used by the fog layers. | FogFilter | ||
materials : Array
Defines an array of materials used by the fog layers (overrides material and subdivisions). | FogFilter | ||
maxZ : Number
Defines the maximum distance (end distance) of the fog layers. | FogFilter | ||
minZ : Number
Defines the minimum distance (start distance) of the fog layers. | FogFilter | ||
subdivisions : Number
Defines the maximum distance (end distance) of the fog layers. | FogFilter |
Property | Defined By | ||
---|---|---|---|
ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor. | FogFilter |
Method | Defined By | ||
---|---|---|---|
FogFilter(init:Object = null)
Creates a new FogFilter object. | FogFilter | ||
Applies the filter to the primitive array. | FogFilter | ||
toString():String
Used to trace the values of a filter. | FogFilter | ||
updateMaterialColor(color:uint):void
Allows color change at runtime of the filter
| FogFilter |
ini | property |
protected var ini:Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
material | property |
material:ColorMaterial
Defines the material used by the fog layers.
public function get material():ColorMaterial
public function set material(value:ColorMaterial):void
materials | property |
materials:Array
Defines an array of materials used by the fog layers (overrides material and subdivisions).
public function get materials():Array
public function set materials(value:Array):void
maxZ | property |
maxZ:Number
Defines the maximum distance (end distance) of the fog layers.
public function get maxZ():Number
public function set maxZ(value:Number):void
minZ | property |
minZ:Number
Defines the minimum distance (start distance) of the fog layers.
public function get minZ():Number
public function set minZ(value:Number):void
subdivisions | property |
subdivisions:Number
Defines the maximum distance (end distance) of the fog layers.
public function get subdivisions():Number
public function set subdivisions(value:Number):void
FogFilter | () | Constructor |
public function FogFilter(init:Object = null)
Creates a new FogFilter
object.
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
filter | () | method |
public function filter(renderer:Renderer):void
Applies the filter to the primitive array.
Parameters
renderer:Renderer — The primitives to be filtered.
|
toString | () | method |
public function toString():String
Used to trace the values of a filter.
ReturnsString — A string representation of the filter object.
|
updateMaterialColor | () | method |
public function updateMaterialColor(color:uint):void
Allows color change at runtime of the filter
Parameters
color:uint — The new color for the filter
|