summaryrefslogtreecommitdiff
path: root/model.6.txt
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-30 13:39:52 +0000
committerrodri <rgl@antares-labs.eu>2024-09-30 13:39:52 +0000
commit453d100ac7734cd64652aa4d3a0685e3494428f7 (patch)
tree472fcc6b88032e276bbf9ea64dbc4e29ad34d73c /model.6.txt
parentb82c104fddd692f82baeb370a3b8e6d058fe3d2b (diff)
downloadlibgraphics-453d100ac7734cd64652aa4d3a0685e3494428f7.tar.gz
libgraphics-453d100ac7734cd64652aa4d3a0685e3494428f7.tar.bz2
libgraphics-453d100ac7734cd64652aa4d3a0685e3494428f7.zip
define model(6) prim as P instead. add GREY8 textures. add more documentation.
Diffstat (limited to 'model.6.txt')
-rw-r--r--model.6.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/model.6.txt b/model.6.txt
index f91527d..73fda4b 100644
--- a/model.6.txt
+++ b/model.6.txt
@@ -5,7 +5,7 @@ c r g b [a]
v pᵢ [nᵢ|-] [tᵢ|-] [cᵢ|-]
T x y z
-prim nverts vᵢ... [Tᵢ|-] [mtlname]
+P nverts vᵢ... [Tᵢ|-] [mtlname]
mtl name {
ambient: r g b [a]
@@ -16,3 +16,20 @@ mtl name {
specularmap: path
normals: path
}
+
+
+p position
+ * if w is not specified it defaults to 1
+n normal
+t texture coordinates
+c color
+ * if a is not specified it defaults to 1
+v vertex
+T tangent
+P primitive
+mtl material definition
+ * ambient, diffuse and specular parameters take colors in linear RGB space
+ * diffusemap assumes the image colors are gamma-corrected (sRGBTexture)
+ * specularmap and normals both assume image contents are linear (RAWTexture)
+
+indices (ᵢ) are zero-based