Three.js:强制循环展开 [英] Three.js: forcing loop to unroll

查看:233
本文介绍了Three.js:强制循环展开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常使用Three.js时,我在Firebug上收到此错误:

When using normally three.js I get this error at Firebug:

gl.getProgramInfoLog()(54,6):警告X3557:循环仅执行1 迭代,强制循环展开

gl.getProgramInfoLog() (54,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll

其余所有看起来都工作正常,没有出现任何问题.

Even all the rest looks like working properly and not giving any problem.

尝试从网络中获取一些示例,我会看到相同的错误消息,例如,您可以在网络中的某些示例中找到它,例如这一个

Trying with some examples from the net I see the same error message, you can find it for example at some examples in the net like this one

当使用three.js时,它会出现在第537行,使用three.js时,它会出现在第25909行.

When it uses three.min.js appears at line: 537 and with three.js it appears at line: 25909.

推荐答案

这是一个错误,请检出

It was a bug, checkout three.js issue tracker. Apparently, it has been fixed.

这篇关于Three.js:强制循环展开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆