aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorSyoyo Fujita <syoyo@lighttransport.com>2016-07-25 22:46:30 +0900
committerSyoyo Fujita <syoyo@lighttransport.com>2016-07-25 22:46:30 +0900
commit22883def8db9ef1f3ffb9b404318e7dd25fdbb51 (patch)
treeace539c808b8f5ef126af1e378520d90a6b42f9a /models
parent5826f1e149f6c5c09434639c226297286bdedd0e (diff)
downloadtinyobjloader-22883def8db9ef1f3ffb9b404318e7dd25fdbb51.tar.gz
Support PBR extension for MTL which is proposed in http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr
Diffstat (limited to 'models')
-rw-r--r--models/pbr-mat-ext.mtl19
-rw-r--r--models/pbr-mat-ext.obj10
2 files changed, 29 insertions, 0 deletions
diff --git a/models/pbr-mat-ext.mtl b/models/pbr-mat-ext.mtl
new file mode 100644
index 0000000..bed905d
--- /dev/null
+++ b/models/pbr-mat-ext.mtl
@@ -0,0 +1,19 @@
+# .MTL with PBR extension.
+newmtl pbr
+Ka 0 0 0
+Kd 1 1 1
+Ks 0 0 0
+Ke 0.1 0.1 0.1
+Pr 0.2
+Pm 0.3
+Ps 0.4
+Pc 0.5
+Pcr 0.6
+aniso 0.7
+anisor 0.8
+map_Pr roughness.tex
+map_Pm metallic.tex
+map_Ps sheen.tex
+map_Ke emissive.tex
+norm normalmap.tex
+
diff --git a/models/pbr-mat-ext.obj b/models/pbr-mat-ext.obj
new file mode 100644
index 0000000..bb3e371
--- /dev/null
+++ b/models/pbr-mat-ext.obj
@@ -0,0 +1,10 @@
+mtllib pbr-mat-ext.mtl
+
+o floor
+usemtl pbr
+v 552.8 0.0 0.0
+v 0.0 0.0 0.0
+v 0.0 0.0 559.2
+v 549.6 0.0 559.2
+
+f 1 2 3 4