peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
528 stars 320 forks source link

load OBJ error #51

Closed zhixing121 closed 5 years ago

zhixing121 commented 5 years ago

I load the same obj model with three.js and threebox,the former can load it ,but threebox throw error 1、'threebox.js:2297 THREE.WebGLShader: Shader couldn't compile.'
2、threebox.js:2314 THREE.WebGLProgram: shader error: 0 gl.VALIDATE_STATUS false gl.getProgramInfoLog invalid shaders

I use three94.js in src to load model,it worked!

zhixing121 commented 5 years ago

It is fixed! I change obj model's material to MeshBasicMaterial!