Skip to content

Commit

Permalink
Canvas mesh alpha. Fix for #4534 (#4535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev authored and bigtimebuddy committed Dec 14, 2017
1 parent 0faef4f commit 8cc8b96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mesh/canvas/CanvasMeshRenderer.js
Expand Up @@ -54,6 +54,7 @@ export default class MeshSpriteRenderer
);
}

renderer.context.globalAlpha = mesh.worldAlpha;
renderer.setBlendMode(mesh.blendMode);

if (mesh.drawMode === Mesh.DRAW_MODES.TRIANGLE_MESH)
Expand Down

0 comments on commit 8cc8b96

Please sign in to comment.