Commit Graph

18 Commits

Author SHA1 Message Date
Tim Knip
bdebfeadee proper indent 2017-10-10 15:06:45 +02:00
Tim Knip
fab88cfdfa remove texture options from texture name 2017-10-10 13:23:09 +02:00
Tim Knip
3e41cdc7f6 Fix texture options ending up in texture filename #109
This happens when in `*.mtl` a relative texture path does not have a
`./` prefix.
eg: map_bump -bm 0.1 foo.jpg
2017-10-02 01:52:31 +02:00
Tim Knip
3cff129933 fixing merge conflict #109 2017-09-29 20:21:02 +02:00
Tim Knip
3ec919e9c4 better regexp for #109 2017-09-29 20:16:55 +02:00
Tim Knip
ac756bed05 fix texture paths and parse texture map options
When the mtl has statements like ```map_Bump -bm 0.2 ./foo.jpg``` then
the options end up in the texture path.
eg: ```./-bm 0.2/foo.jpg```.

This commit fixes the path and parses the options.
2017-09-29 19:31:14 +02:00
Tim Knip
c18f8c49eb fix texture paths and parse texture map options
When the mtl has statements like `map_Bump -bm 0.2 ./foo.jpg` then
the options end up in the texture path.
eg: `/bar/-bm 0.2/foo.jpg`.

This commit fixes the path and parses the options.
2017-09-29 19:26:51 +02:00
Sean Lilley
3c5f055182 Constant lighting added back to materialsCommon 2017-09-21 10:40:44 -04:00
Sean Lilley
e36668ab14 Treat alpha of 0 as 1 2017-09-19 11:59:51 -04:00
Sean Lilley
b2e4fb6deb Add doc 2017-08-11 12:01:23 -04:00
Sean Lilley
60a080be46 Reorganization of material loading and returning buffer rather than writing file 2017-08-08 15:09:00 -04:00
Sean Lilley
3da691df62 Cleanup overriding images 2017-07-28 17:01:45 -04:00
Sean Lilley
df20748d60 Merge branch 'master' into gltf-2.0 2017-07-17 14:38:20 -04:00
Sean Lilley
86c604826c Treat alpha as 1.0 - Tr 2017-05-18 09:32:06 -04:00
Sean Lilley
c2af8f5098 Tests 2017-05-10 13:10:59 -04:00
Sean Lilley
c9ad66fcdb Add metallicRoughness and specularGlosiness output 2017-05-04 14:25:08 -04:00
Sean Lilley
ce5221c80a 2.0 2017-04-19 17:53:10 -04:00
Sean Lilley
37febbcd93 Renaming files 2017-04-12 16:55:03 -04:00