shithub: libgraphics

ref: a09cfff78a96a10169a30324b75554827945fed4
dir: /model.6.txt/

View raw version
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
P 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
}


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
	* name can contain spaces if quoted (see quote(2))
	* 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