本文介绍了当我使用MeshLambertMaterial时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用MeshLambertMaterial,但最后我发现了一个问题。当我使用我的笔记本(windows 10)时,这是正常的。即使在Three.js上查看示例,也会出现此问题。这些是错误:
I use MeshLambertMaterial but finally I found a problem.When I use my notebook(windows 10) , it is normal.Even when I view the example on Three.js ,this problem occurs. These are the errors:
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.
谢谢。
Thanks.
推荐答案
在three.js r.76dev分支中实现了使用 MeshLambertMaterial
时,在某些Windows平台上防止出现这些错误的解决方法。
A workaround to prevent these errors on certain Windows platforms when using MeshLambertMaterial
has been implemented in the three.js r.76dev branch.
这篇关于当我使用MeshLambertMaterial时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!