Initial support of texture options.

This commit is contained in:
Syoyo Fujita
2016-11-02 02:11:17 +09:00
parent c2474e27ab
commit 582eb2b818
4 changed files with 237 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
newmtl default
Ka 0 0 0
Kd 0 0 0
Ks 0 0 0
Kt 0.1 0.2 0.3
map_Kd -o 0.1 diffuse.jpg
map_Ks -o 0.1 0.2 specular.jpg
map_Ns -o 0.1 0.2 0.3 specular_highlight.jpg
map_bump -bm 3 bumpmap.jpg
newmtl bm2
Ka 0 0 0
Kd 0 0 0
Ks 0 0 0
Kt 0.1 0.2 0.3
# blendu
map_Kd -blendu on diffuse.jpg
map_Ks -blendv off specular.jpg
# -bm after filename
map_bump bumpmap2.jpg -bm 1.5

View File

@@ -0,0 +1,7 @@
mtllib texture-options-issue-85.mtl
o Test
v 1.864151 -1.219172 -5.532511
v 0.575869 -0.666304 5.896140
v 0.940448 1.000000 -1.971128
usemtl default
f 1 2 3