当前位置:   article > 正文

Uncaught TypeError: Failed to execute ‘uniform3fv‘ on ‘WebGL2RenderingContext‘_uncaught typeerror: failed to execute 'uniform3fv'

uncaught typeerror: failed to execute 'uniform3fv' on 'webgl2renderingcontex

Three.js 报错:
Uncaught TypeError: Failed to execute ‘uniform3fv’ on ‘WebGL2RenderingContext’: Overload resolution failed.

解决:
代码中更改Material的color属性代码:

line.material.color = 0xdb5df5;
  • 1

改为:

line.material.color.set(0xdb5df5);
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/687664
推荐阅读
相关标签
  

闽ICP备14008679号