我使用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.

谢谢。

最佳答案

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

10-06 08:13