Packageaway3d.materials.passes
Classpublic class WireFramePass
InheritanceWireFramePass Inheritance MaterialPassBase

Public Properties
 PropertyDefined by
 Inheritedanimation : AnimationBase
The animation used to add vertex code to the shader code.
MaterialPassBase
 InheritedbothSides : Boolean
Defines whether or not the material should perform backface culling.
MaterialPassBase
 Inheritedlights : Vector
MaterialPassBase
 Inheritedmaterial : MaterialBase
The material to which this pass belongs.
MaterialPassBase
 Inheritedmipmap : Boolean
Defines whether any used textures should use mipmapping.
MaterialPassBase
 InheritednumUsedStreams : uint
The amount of used vertex streams in the vertex code.
MaterialPassBase
 InheritednumUsedVertexConstants : uint
The amount of used vertex constants in the vertex code.
MaterialPassBase
 Inheritedrepeat : Boolean
Defines whether textures should be tiled.
MaterialPassBase
 Inheritedsmooth : Boolean
Defines whether smoothing should be applied to any used textures.
MaterialPassBase
Protected Properties
 PropertyDefined by
 Inherited_animatableAttributes : Array
MaterialPassBase
 Inherited_lights : Vector
MaterialPassBase
 Inherited_mipmap : Boolean = false
MaterialPassBase
 Inherited_numLights : uint
MaterialPassBase
 Inherited_numUsedStreams : uint
MaterialPassBase
 Inherited_numUsedVertexConstants : uint
MaterialPassBase
 Inherited_projectedTargetRegister : String
MaterialPassBase
 Inherited_repeat : Boolean = false
MaterialPassBase
 Inherited_smooth : Boolean = true
MaterialPassBase
 Inherited_targetRegisters : Array
MaterialPassBase
Public Methods
 MethodDefined by
  
WireFramePass
(w:int, h:int)
Creates a new SingleObjectDepthPass object.
WireFramePass
 Inherited
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
MaterialPassBase
  
projectionMatrix(camera:Camera3D):Matrix3D
WireFramePass
Protected Methods
 MethodDefined by
 Inherited
initPass(context:Context3D, contextIndex:uint):void
Initializes the shader program object.
MaterialPassBase
  
updateProgram(context:Context3D, contextIndex:uint, polyOffsetReg:String = null):void
Compiles the shader program.
WireFramePass
Protected Constants
 ConstantDefined by
  DEG2RAD_2 : Number = 0.008726646259971648
[static]
WireFramePass
  FRONT_VECTOR : Vector
[static]
WireFramePass
  ONE_VECTOR : Vector
[static]
WireFramePass
  ZERO_VECTOR : Vector
[static]
WireFramePass
Constructor detail
WireFramePass()constructor
public function WireFramePass(w:int, h:int)Parameters
w:int — The size of the depth map texture to render to.
 
h:int — The amount by which the rendered object will be inflated, to prevent depth map rounding errors.
Init Parameters
Method detail
activate()method
arcane override function activate(context:Context3D, contextIndex:uint, camera:Camera3D):void

Parameters
context:Context3D
 
contextIndex:uint
 
camera:Camera3D
deactivate()method 
arcane override function deactivate(context:Context3D):void Parameters
context:Context3D
getFragmentCode()method 
arcane override function getFragmentCode():String

Returns
String
getVertexCode()method 
arcane override function getVertexCode():String

Returns
String
projectionMatrix()method 
public function projectionMatrix(camera:Camera3D):Matrix3D Parameters
camera:Camera3D

Returns
Matrix3D
render()method 
arcane override function render(renderable:IRenderable, context:Context3D, contextIndex:uint, camera:Camera3D):void

Renders an object to the current render target.

Parameters
renderable:IRenderable — The IRenderable object to render.
 
context:Context3D — The context which is performing the rendering.
 
contextIndex:uint — The camera from which the scene is viewed.
 
camera:Camera3D — The lights which influence the rendered scene.
updateProgram()method 
protected override function updateProgram(context:Context3D, contextIndex:uint, polyOffsetReg:String = null):void

Compiles the shader program.

Parameters
context:Context3D — The context for which to compile the shader program.
 
contextIndex:uint — An optional register that contains an amount by which to inflate the model (used in single object depth map rendering).
 
polyOffsetReg:String (default = null)
Constant detail
DEG2RAD_2constant
protected static const DEG2RAD_2:Number = 0.008726646259971648
FRONT_VECTORconstant 
protected static const FRONT_VECTOR:Vector
ONE_VECTORconstant 
protected static const ONE_VECTOR:Vector
ZERO_VECTORconstant 
protected static const ZERO_VECTOR:Vector
Wiki link
Click to go to the wiki page for 'away3d.materials.passes.WireFramePass'

Code examples

Comments