Mercurial > hg > Members > e085711
diff webGL/dandy/resources/J3DI.js @ 26:933062d8e917
update library J3DI.js J3DMath.js
author | NOBUYASU Oshiro |
---|---|
date | Tue, 09 Nov 2010 00:03:42 +0900 |
parents | fac103fcf60d |
children |
line wrap: on
line diff
--- a/webGL/dandy/resources/J3DI.js Fri Nov 05 08:40:26 2010 +0900 +++ b/webGL/dandy/resources/J3DI.js Tue Nov 09 00:03:42 2010 +0900 @@ -72,7 +72,7 @@ gl.attachShader (gl.program, fragmentShader); // Bind attributes - for (var i in attribs) + for (var i = 0; i < attribs.length; ++i) gl.bindAttribLocation (gl.program, i, attribs[i]); // Link the program @@ -97,7 +97,7 @@ gl.clearColor(clearColor[0], clearColor[1], clearColor[2], clearColor[3]); gl.clearDepth(clearDepth); -// gl.enable(gl.DEPTH_TEST); + // gl.enable(gl.DEPTH_TEST); gl.enable(gl.BLEND); gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);