【发布时间】:2014-06-22 20:31:30
【问题描述】:
好的,我正在运行一些 Webgl 实验,使用 ThreeJS 和 PhysiJS 将它们包装在 angularJS 中。 而且我无法启动重力,你可以在这里找到我的问题的一个例子:
http://buildawebdoctor.com/canvas/#/spiro_eight
我在控制台中收到大量错误:
gl.getProgramInfoLog() warning: Variable sampler array index unsupported.
This feature of the language was removed in GLSL 1.20 and is unlikely to be supported for 1.10 in Mesa.
我认为这个错误是我的 GPU 上的一个错误:
这是警告而不是错误
https://github.com/mrdoob/three.js/issues/4507
然后两个undefined不是函数,调用。 包含物理的文件是这个:
https://github.com/vimes1984/spiro/blob/master/scripts/controllers/spiro_eight.js
我没有足够的关于网络工作者的知识来修复它。 有人可以指出我正确的方向,或者至少给我一个解释为什么它不起作用......
【问题讨论】:
标签: javascript angularjs three.js webgl physics-engine