4 ms·
You shouldn't be using innerHTML to get your shader text, it'll break as soon as you put a comparison operator into the shader. Use textContent. You should sup
by kevingadd 14y ago
You shouldn't be using innerHTML to get your shader text, it'll break as soon as you put a comparison operator into the shader. Use textContent.
You should support using typed arrays instead of raw JS objects ({ x: , y: }) for setting vectors, since that will give people the option of using something like glMatrix.
- gren 14y agoWoo, thanks a lot for your feedback :) I'll fix that ASAP. [EDIT] all of the issues are now on github: https://github.com/gre/glsl.js/issues https://github.com/gre/glsl.js/issues
- erichocean 14y ago+1 on typed arrays. Anything that supports WebGL should also support them.