I wanted to play with THREE lod system, and I applied normal mapped material on my meshes but it failed with GL errors :
WebGLRenderingContext: GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2
Anyone can reproduce it quite easly I think, just edit the webgl_lod example, and instead of applying a MeshLambertMaterial use the normalmap ShaderMaterial provided in the misc_control_fly example.
Am I missing something, isn't the normalmap shader supposed to work with LOD meshes ?
edit: here is links to see the problem.
original example webgl_lod that is working : http://typedef.byethost8.com/examples/webgl_lod.html
with normalmap shader from shaderLib instead of original meshLambertMateriel of web_lod example : http://typedef.byethost8.com/examples/failing_webgl_lod.html