frenchtoast747 / webgl-obj-loader

A simple OBJ model loader to help facilitate the learning of WebGL.
http://frenchtoast747.github.io/webgl-obj-loader/
MIT License
281 stars 59 forks source link

Separate index buffers per-material #44

Closed novalain closed 6 years ago

novalain commented 6 years ago

Sometimes it's not desirable to pass all the material information to a single shader, but rather switch shaders between materials.

One solution would be to have the materials hold separate index buffers to accomplish this.