interface IRenderable
package away3d.core.base
extends IMaterialOwner
extended by SubMesh, SegmentSet, Sprite3D, SkyBox
Available on all platforms
IRenderable provides an interface for objects that can be rendered in the rendering pipeline.
Variables
read onlyinverseSceneTransform:Matrix3D
The inverse scene transform object that transforms from world to model space.
read onlymouseEnabled:Bool
Indicates whether the IRenderable should trigger mouse events, and hence should be rendered for hit testing.
read onlysceneTransform:Matrix3D
The transformation matrix that transforms from model to world space.
read onlysourceEntity:Entity
The entity that that initially provided the IRenderable to the render pipeline.
read onlyuvTransform:Matrix
Provides a Matrix object to transform the uv coordinates, if the material supports it. For TextureMaterial and TextureMultiPassMaterial, the animateUVs property should be set to true.
read onlyvertexStride:Int
The number of data elements in the buffers per vertex. This always applies to vertices, normals and tangents.
Methods
activateSecondaryUVBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for a secondary set of UV coordinates
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
activateUVBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for UV coordinates
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
activateVertexBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for vertex positions.
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
activateVertexNormalBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for vertex normals
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
activateVertexTangentBuffer(index:Int, stage3DProxy:Stage3DProxy):Void
Assigns the attribute stream for vertex tangents
Parameters:
index | The attribute stream index for the vertex shader |
|---|---|
stage3DProxy | The Stage3DProxy to assign the stream to |
getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the IndexBuffer3D object that contains triangle indices.
Parameters:
context | The Context3D for which we request the buffer |
|---|
Returns:
The VertexBuffer3D object that contains triangle indices.
getRenderSceneTransform(camera:Camera3D):Matrix3D
The transformation matrix that transforms from model to world space, adapted with any special operations needed to render. For example, assuring certain alignedness which is not inherent in the scene transform. By default, this would return the scene transform.