diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 92f3cea..6b31e6e 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -755,6 +755,7 @@ this._spriteRect.tint = this.graphicsData[0].fillColor; } + this._spriteRect.worldAlpha = this.worldAlpha; Graphics._SPRITE_TEXTURE.crop.width = rect.width; Graphics._SPRITE_TEXTURE.crop.height = rect.height; diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 92f3cea..6b31e6e 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -755,6 +755,7 @@ this._spriteRect.tint = this.graphicsData[0].fillColor; } + this._spriteRect.worldAlpha = this.worldAlpha; Graphics._SPRITE_TEXTURE.crop.width = rect.width; Graphics._SPRITE_TEXTURE.crop.height = rect.height; diff --git a/src/core/graphics/webgl/shaders/PrimitiveShader.js b/src/core/graphics/webgl/shaders/PrimitiveShader.js index 44166b3..9a1a043 100644 --- a/src/core/graphics/webgl/shaders/PrimitiveShader.js +++ b/src/core/graphics/webgl/shaders/PrimitiveShader.js @@ -21,7 +21,6 @@ 'uniform mat3 projectionMatrix;', 'uniform float alpha;', - 'uniform float flipY;', 'uniform vec3 tint;', 'varying vec4 vColor;',