我使用MeshLambertMaterial时出错

时间:2016-04-14 15:18:41

标签: javascript html three.js

我使用MeshLambertMaterial,但最后我发现了一个问题。当我使用笔记本(Windows 10)时,这是正常的。即使我在Three.js上查看示例,也会出现此问题。这些是错误:

three.dpkg?cacheBuster=zh_CN1460645951295:29438 THREE.WebGLProgram: shader          error:  0 gl.VALIDATE_STATUS false gl.getProgramInfoLog C:\fakepath(250,9-30): error X3004: undeclared identifier 'IncidentLight'

Warning: D3D shader compilation failed with default flags. (vs_3_0)
Retrying with avoid flow control
C:\fakepath(250,9-30): error X3004: undeclared identifier   'webgl_45daf4aa877f103d'

Warning: D3D shader compilation failed with avoid flow control flags. (vs_3_0)
Retrying with prefer flow control
C:\fakepath(250,9-30): error X3004: undeclared identifier 'webgl_45daf4aa877f103d'

Warning: D3D shader compilation failed with prefer flow control flags.   (vs_3_0)
Failed to create D3D shaders.

感谢。

1 个答案:

答案 0 :(得分:1)

使用MeshLambertMaterial时在某些Windows平台上防止这些错误的解决方法已在three.js r.76dev分支中实现。