Packageaway3d.core.filter
Classpublic class FogFilter
ImplementsIPrimitiveFilter

Adds fog layers to a view and provides automatic farfield filtering for primitives outside the furthest fog layers.

Public Properties
 PropertyDefined by
  material : IFogMaterial
Defines the material used by the fog layers.
FogFilter
Protected Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
FogFilter
(init:Object = null)
Creates a new FogFilter object.
FogFilter
  
filter(primitives:Array, scene:Scene3D, camera:Camera3D, clip:Clipping):Array
Applies the filter to the primitive array.
FogFilter
  
toString():String
Used to trace the values of a filter.
FogFilter
Property detail
iniproperty
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.

materialproperty 
material:IFogMaterial  [read-write]

Defines the material used by the fog layers.

Implementation
    public function get material():IFogMaterial
    public function set material(value:IFogMaterial):void
Constructor detail
FogFilter()constructor
public function FogFilter(init:Object = null)Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method detail
filter()method
public function filter(primitives:Array, scene:Scene3D, camera:Camera3D, clip:Clipping):Array

Applies the filter to the primitive array.

Parameters
primitives:Array — The primitives to be filtered.
 
scene:Scene3D — The scene to which the primitives belongs.
 
camera:Camera3D — The camera being used in the renderer for the primitives.
 
clip:Clipping — The clipping object used in the renderer for the primitive's view.

Returns
Array
toString()method 
public function toString():String

Used to trace the values of a filter.

Returns
String — A string representation of the filter object.
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments