CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

Added alpha texture support #124

Closed lilleyse closed 6 years ago

lilleyse commented 6 years ago

Added support for parsing map_d in the mtl file. The alpha texture is packed with the diffuse texture.

@shehzan10 - would you like to review? No rush at all with this.

Tested with red-baron.zip from https://groups.google.com/d/msg/cesium-dev/FFKF3N77FmQ/4kBkgD4qBAAJ

Command for running: node bin/obj2gltf.js -i red-baron/red-baron.obj --metallicRoughness