diff --git a/src/pixi/extras/Strip.js b/src/pixi/extras/Strip.js index f46d1c0..07f381e 100644 --- a/src/pixi/extras/Strip.js +++ b/src/pixi/extras/Strip.js @@ -125,7 +125,7 @@ gl.uniformMatrix3fv(shader.translationMatrix, false, this.worldTransform.toArray(true)); gl.uniform2f(shader.projectionVector, projection.x, -projection.y); gl.uniform2f(shader.offsetVector, -offset.x, -offset.y); - gl.uniform1f(shader.alpha, 1); + gl.uniform1f(shader.alpha, this.worldAlpha); if(!this.dirty) { @@ -143,7 +143,7 @@ // check if a texture is dirty.. if(this.texture.baseTexture._dirty[gl.id]) { - this.renderSession.renderer.updateTexture(this.texture.baseTexture); + renderSession.renderer.updateTexture(this.texture.baseTexture); } else { diff --git a/src/pixi/extras/Strip.js b/src/pixi/extras/Strip.js index f46d1c0..07f381e 100644 --- a/src/pixi/extras/Strip.js +++ b/src/pixi/extras/Strip.js @@ -125,7 +125,7 @@ gl.uniformMatrix3fv(shader.translationMatrix, false, this.worldTransform.toArray(true)); gl.uniform2f(shader.projectionVector, projection.x, -projection.y); gl.uniform2f(shader.offsetVector, -offset.x, -offset.y); - gl.uniform1f(shader.alpha, 1); + gl.uniform1f(shader.alpha, this.worldAlpha); if(!this.dirty) { @@ -143,7 +143,7 @@ // check if a texture is dirty.. if(this.texture.baseTexture._dirty[gl.id]) { - this.renderSession.renderer.updateTexture(this.texture.baseTexture); + renderSession.renderer.updateTexture(this.texture.baseTexture); } else { diff --git a/src/pixi/renderers/webgl/utils/WebGLShaderManager.js b/src/pixi/renderers/webgl/utils/WebGLShaderManager.js index d342e03..b597698 100644 --- a/src/pixi/renderers/webgl/utils/WebGLShaderManager.js +++ b/src/pixi/renderers/webgl/utils/WebGLShaderManager.js @@ -19,6 +19,8 @@ this.attribState[i] = false; } + this.stack = []; + //this.setContext(gl); // the final one is used for the rendering strips };