summaryrefslogtreecommitdiff
path: root/model.6.txt
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-26 15:22:02 +0000
committerrodri <rgl@antares-labs.eu>2024-09-26 15:22:02 +0000
commit3155c6737832c54310c70ecaaf8667d0362de5e8 (patch)
tree5046974fdbaef855fb29d19671a9b80a9deb41f2 /model.6.txt
parenta8c789be9ab0fec65004118b7df373e84900cb1a (diff)
downloadlibgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.gz
libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.bz2
libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.zip
implement a parser for a model(6). get rid of the libobj dependency.
Diffstat (limited to 'model.6.txt')
-rw-r--r--model.6.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/model.6.txt b/model.6.txt
new file mode 100644
index 0000000..f91527d
--- /dev/null
+++ b/model.6.txt
@@ -0,0 +1,18 @@
+p x y z [w]
+n x y z
+t u v
+c r g b [a]
+v pᵢ [nᵢ|-] [tᵢ|-] [cᵢ|-]
+
+T x y z
+prim nverts vᵢ... [Tᵢ|-] [mtlname]
+
+mtl name {
+ ambient: r g b [a]
+ diffuse: r g b [a]
+ specular: r g b [a]
+ shininess: n
+ diffusemap: path
+ specularmap: path
+ normals: path
+}