Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

errors when I use MeshLambertMaterial

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.

like image 808
Brian.Xia Avatar asked Jun 17 '26 12:06

Brian.Xia


1 Answers

A workaround to prevent these errors on certain Windows platforms when using MeshLambertMaterial has been implemented in the three.js r.76dev branch.

like image 121
WestLangley Avatar answered Jun 20 '26 01:06

WestLangley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!