I'm using opengl renderer and trying to make bump mapping work.
I've read this article http://www.jpct.net/wiki/index.php/Shaders and I'm trying to make it load bump maps automatically.
I'm loading models from .obj files and in .mtl there are lines like:
Is there any way to get material info from Object3D?
I could parse .mtl files manually but it becomes more complicated when multiple objects are stored in one .obj file.
Maybe there's another way to make it work?
I've read this article http://www.jpct.net/wiki/index.php/Shaders and I'm trying to make it load bump maps automatically.
I'm loading models from .obj files and in .mtl there are lines like:
Code Select
bump bump.jpg -bm 5
Is there any way to get material info from Object3D?
I could parse .mtl files manually but it becomes more complicated when multiple objects are stored in one .obj file.
Maybe there's another way to make it work?