Skip to content

Commit fcf5d20

Browse files
committed
Disable culling if layer has non-1 scroll factor phaserjs#3893
1 parent d45c1c9 commit fcf5d20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemaps/components/CullTiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var CullTiles = function (layer, camera, outputArray)
4545
var drawTop = 0;
4646
var drawBottom = mapHeight;
4747

48-
if (!tilemapLayer.skipCull)
48+
if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1)
4949
{
5050
// Camera world view bounds, snapped for scaled tile size
5151
// Cull Padding values are given in tiles, not pixels

0 commit comments

Comments
 (0)