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.
instance:AGALProgram3DAssembler
[read-only]
Gets the instance for the AGALProgram3DAssembler.
Implementation
public static function get instance():AGALProgram3DAssembler
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.
|