IRenderable provides an interface for objects that can be rendered in the rendering pipeline.

Variables

read onlyUVData:Vector<Float>

Retrieves the object's uvs as a Number array.

read onlycastsShadows:Bool

Indicates whether the renderable can cast shadows

read onlyindexData:Vector<UInt>

Retrieves the object's indices as a UInt array.

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 onlynumTriangles:Int

The amount of triangles that comprise the IRenderable geometry.

read onlynumVertices:Int

The total amount of vertices in the SubGeometry.

read onlysceneTransform:Matrix3D

The transformation matrix that transforms from model to world space.

read onlyshaderPickingDetails:Bool

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 onlyuvTransform2:Matrix

read onlyvertexData:Vector<Float>

Retrieves the object's vertices as a Number array.

read onlyvertexNormalData:Vector<Float>

Retrieves the object's normals as a Number array.

read onlyvertexStride:Int

The number of data elements in the buffers per vertex. This always applies to vertices, normals and tangents.

read onlyvertexTangentData:Vector<Float>

Retrieves the object's tangents as a Number array.

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.