Packageaway3d.core.managers
Classpublic class AGALProgram3DAssembler
InheritanceAGALProgram3DAssembler Inheritance Program3DAssemblerBase

AGALProgram3DAssembler provides a singleton class that assembles the AGAL code provided by the animation and the material into a single Program3D instance, adding projection code.

Public Properties
 PropertyDefined by
  instance : AGALProgram3DAssembler
[static][read-only] Gets the instance for the AGALProgram3DAssembler.
AGALProgram3DAssembler
Public Methods
 MethodDefined by
  
assemble(context:Context3D, pass:MaterialPassBase, animation:AnimationBase, program:Program3D, polyOffsetReg:String = null):void
Compiles a Program3D instance for the given animation and material pass.
AGALProgram3DAssembler
Property detail
instanceproperty
instance:AGALProgram3DAssembler  [read-only]

Gets the instance for the AGALProgram3DAssembler.

Implementation
    public static function get instance():AGALProgram3DAssembler
Method detail
assemble()method
public override function assemble(context:Context3D, pass:MaterialPassBase, animation:AnimationBase, program:Program3D, polyOffsetReg:String = null):void

Compiles a Program3D instance for the given animation and material pass.

Parameters
context:Context3D — The Context3D object for which to generate the Program3D object.
 
pass:MaterialPassBase — The material pass for which to generate the Program3D object.
 
animation:AnimationBase — The animation to use in the requested Program3D.
 
program:Program3D — The target Program3D object.
 
polyOffsetReg:String (default = null) — The name of an optional offset register, containing a vector by which will cause the geometry to be "inflated" along the normal. This is typically used when rendering single object depth maps.
Wiki link
Click to go to the wiki page for 'away3d.core.managers.AGALProgram3DAssembler'

Code examples

Comments