aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 18 insertions, 3 deletions
diff --git a/README.md b/README.md
index 26e9e90..100cf7d 100644
--- a/README.md
+++ b/README.md
@@ -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 |