diff --git a/src/pixi/renderers/webgl/utils/WebGLGraphics.js b/src/pixi/renderers/webgl/utils/WebGLGraphics.js index 26fb731..9c061bc 100644 --- a/src/pixi/renderers/webgl/utils/WebGLGraphics.js +++ b/src/pixi/renderers/webgl/utils/WebGLGraphics.js @@ -716,7 +716,7 @@ // get first and last point.. figure out the middle! var indices = webGLData.indices; webGLData.points = points; - + webGLData.alpha = graphicsData.fillAlpha; webGLData.color = PIXI.hex2rgb(graphicsData.fillColor); /* @@ -814,6 +814,7 @@ this.buffer = gl.createBuffer(); this.indexBuffer = gl.createBuffer(); this.mode = 1; + this.alpha = 1; this.dirty = true; }; diff --git a/src/pixi/renderers/webgl/utils/WebGLGraphics.js b/src/pixi/renderers/webgl/utils/WebGLGraphics.js index 26fb731..9c061bc 100644 --- a/src/pixi/renderers/webgl/utils/WebGLGraphics.js +++ b/src/pixi/renderers/webgl/utils/WebGLGraphics.js @@ -716,7 +716,7 @@ // get first and last point.. figure out the middle! var indices = webGLData.indices; webGLData.points = points; - + webGLData.alpha = graphicsData.fillAlpha; webGLData.color = PIXI.hex2rgb(graphicsData.fillColor); /* @@ -814,6 +814,7 @@ this.buffer = gl.createBuffer(); this.indexBuffer = gl.createBuffer(); this.mode = 1; + this.alpha = 1; this.dirty = true; }; diff --git a/src/pixi/renderers/webgl/utils/WebGLStencilManager.js b/src/pixi/renderers/webgl/utils/WebGLStencilManager.js index d2df633..a158417 100644 --- a/src/pixi/renderers/webgl/utils/WebGLStencilManager.js +++ b/src/pixi/renderers/webgl/utils/WebGLStencilManager.js @@ -150,7 +150,7 @@ gl.uniform3fv(shader.tintColor, PIXI.hex2rgb(graphics.tint)); gl.uniform3fv(shader.color, webGLData.color); - gl.uniform1f(shader.alpha, graphics.worldAlpha * graphics.fillAlpha); + gl.uniform1f(shader.alpha, graphics.worldAlpha * webGLData.alpha); gl.bindBuffer(gl.ARRAY_BUFFER, webGLData.buffer);