interface ISubGeometry
package away3d.core.base
extended by CompactSubGeometry, SubGeometry
Available on all platforms
Variables
read onlyvertexNormalStride:Int
The distance between two consecutive normal elements This always applies to vertices, normals and tangents.
read onlyvertexStride:Int
The distance between two consecutive vertex, normal or tangent elements This always applies to vertices, normals and tangents.
read onlyvertexTangentStride:Int
The distance between two consecutive tangent elements 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 |
fromVectors(vertices:Vector<Float>, uvs:Vector<Float>, normals:Vector<Float>, tangents:Vector<Float>):Void
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.