I did some research on “new WebGLFloatArray”. As it is used (in every example), everytime a uniform matrix is updated. And of course I came to the conclusion that it uses too much memory. Here is an example from learningwebgl. function setMatrixUniforms() { var pUniform = gl.getUniformLocation(shaderProgram, “uPMatrix”); gl.uniformMatrix4fv(pUniform, false, new WebGLFloatArray(pMatrix.flatten())); var mvUniform = [...]
Archive for December 2009
new WebGLFloatArray overhead 6 comments
Hello world! Leave a comment
this is a blog meant for webgl additions and for lessons around EWGL.