From 250a3f16d0c20c7f67c185d2745aed2f51a8381f Mon Sep 17 00:00:00 2001 From: giry Date: Tue, 2 Oct 2012 08:47:29 +0300 Subject: [PATCH] Update src/extra/glge_particles.js --- src/extra/glge_particles.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extra/glge_particles.js b/src/extra/glge_particles.js index 4d25668..de10a64 100644 --- a/src/extra/glge_particles.js +++ b/src/extra/glge_particles.js @@ -875,6 +875,7 @@ GLGE.ParticleSystem.prototype.GLRender=function(gl){ gl.useProgram(this.program); this.setAttributes(gl); this.setUniforms(gl); + gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA); gl.depthMask(false); gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.facesGL); gl.drawElements(gl.TRIANGLES,this.facesGL.num, gl.UNSIGNED_SHORT, 0);