Archive for December 2009

new WebGLFloatArray overhead   6 comments

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 = [...]

Posted December 20, 2009 by ewgl in webGL

Tagged with , ,

Hello world!   Leave a comment

this is a blog meant for webgl additions and for lessons around EWGL.

Posted December 7, 2009 by ewgl in Uncategorized

Tagged with

Follow

Get every new post delivered to your Inbox.