diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -17,13 +17,20 @@ mesh: |uint |The number of vertices, normals and optionally texture coordinates. | |vec3f[] |A list of vertices. | |vec3f[] |A list of normals. | -|uint |The number of faces. Each face has 3 indices of type uint. | -|uint[] |The face indices. | |uint |1 if the model has texture coordinates, otherwise 0. | -|vec3f[]* |A list of texture coordinates. The number of texture coordinates matches the number of vertices.| +|vec2f[]* |A list of texture coordinates. The number of texture coordinates matches the number of vertices.| +|uint |The number of faces. | +|face[] |The face indices. | |uint |1 if the model has materials, otherwise 0. | |material[3]|The material data. This is a list of [diffuse, specular, ambient] materials. | +vec2f: + +|Type |Description | +|-----|----------------| +|float|The x coordiate.| +|float|The y coordiate.| + vec3f: |Type |Description | @@ -32,6 +39,14 @@ vec3f: |float|The y coordiate.| |float|The z coordiate.| +face: + +|Type|Description | +|----|-----------------| +|uint|The first index. | +|uint|The second index.| +|uint|The third index. | + material: |Type |Description | |