blob: 1f4ac2b52c5e60f4bf38c4039433315ae4792f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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
|