Skip to content

Commit 22441b1

Browse files
committed
Add PBR MTL spec document. Fixes #364
1 parent f2575c5 commit 22441b1

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ TinyObjLoader is successfully used in ...
127127

128128
### Material
129129

130-
* PBR material extension for .MTL. Its proposed here: http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr
130+
* PBR material extension for .MTL. Please see [pbr-mtl.md](pbr-mtl.md) for details.
131131
* Texture options
132132
* Unknown material attributes are returned as key-value(value is string) map.
133133

pbr-mtl.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## PBR material extension.
2+
3+
The spec can be found in internet archive: https://web.archive.org/web/20230210121526/http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr
4+
5+
* Kd/map_Kd (base/diffuse) // reuse
6+
* Ks/map_Ks (specular) // reuse
7+
* d or Tr (opacity) // reuse
8+
* map_d/map_Tr (opacitymap) // reuse
9+
* Tf (translucency) // reuse
10+
* bump/-bm (bump map) // reuse
11+
* disp (displacement map) // reuse
12+
13+
PBR material parameters as defined by the Disney PBR.
14+
15+
* Pr/map_Pr (roughness) // new
16+
* Pm/map_Pm (metallic) // new
17+
* Ps/map_Ps (sheen) // new
18+
* Pc (clearcoat thickness) // new
19+
* Pcr (clearcoat roughness) // new
20+
* Ke/map_Ke (emissive) // new
21+
* aniso (anisotropy) // new
22+
* anisor (anisotropy rotation) // new
23+
* norm (normal map) // new
24+
25+
EoL.

0 commit comments

Comments
 (0)