mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Fix: use globalAlpha since renderer.setAlpha doesn't work with ctx manipulation
This commit is contained in:
parent
e53fa0e716
commit
d686cd7140
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ var StaticTilemapLayerCanvasRenderer = function (renderer, gameObject, interpola
|
|||
ctx.rotate(gameObject.rotation);
|
||||
ctx.scale(gameObject.scaleX, gameObject.scaleY);
|
||||
ctx.scale(gameObject.flipX ? -1 : 1, gameObject.flipY ? -1 : 1);
|
||||
renderer.setAlpha(gameObject.alpha);
|
||||
ctx.globalAlpha = gameObject.alpha;
|
||||
|
||||
for (var index = 0; index < tileCount; ++index)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue