mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Disable culling if layer has non-1 scroll factor #3893
This commit is contained in:
parent
d45c1c9d97
commit
fcf5d20d7b
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ var CullTiles = function (layer, camera, outputArray)
|
|||
var drawTop = 0;
|
||||
var drawBottom = mapHeight;
|
||||
|
||||
if (!tilemapLayer.skipCull)
|
||||
if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1)
|
||||
{
|
||||
// Camera world view bounds, snapped for scaled tile size
|
||||
// Cull Padding values are given in tiles, not pixels
|
||||
|
|
Loading…
Reference in a new issue