Summary.
The functions in this file create models in an IFS (Indexed Face Set) format that can be drawn using gl.drawElements with primitive type gl.TRIANGLES.
Objects have for each vertex:- vertex coordinates,
- normal vectors,
- texture coordinates,
- vertex tangents,
- plus a list of indices for the element array buffer.
model.vertexPositions -- the vertex coordinates; model.vertexNormals -- the normal vectors; model.vertexTextureCoords -- the texture coordinates; model.vertexTangents -- the tangent vectors; model.indices -- the face indices.The first four properties are of type Float32Array, while model.indices is of type Uint16Array.
- Since:
- 19/11/2022
- Source:
- See: