View source
class CompactSubGeometry
package away3d.core.base
extends SubGeometryBase
implements ISubGeometry
extended by SkinnedSubGeometry
Available on all platforms
Constructor
Variables
Methods
fromVectors(verts:Vector<Float>, uvs:Vector<Float>, normals:Vector<Float>, tangents:Vector<Float>):Void
stripBuffer(offset:Int, numEntries:Int):Vector<Float>
Isolate and returns a Vector.Number of a specific buffer type
- stripBuffer(0, 3), return only the vertices
- stripBuffer(3, 3): return only the normals
- stripBuffer(6, 3): return only the tangents
- stripBuffer(9, 2): return only the uv's
- stripBuffer(11, 2): return only the secondary uv's
updateData(data:Vector<Float>):Void
Updates the vertex data. All vertex properties are contained in a single Vector, and the order is as follows: 0 - 2: vertex position X, Y, Z 3 - 5: normal X, Y, Z 6 - 8: tangent X, Y, Z 9 - 10: U V 11 - 12: Secondary U V