Disable culling if layer has non-1 scroll factor #3893

This commit is contained in:
Richard Davey 2018-08-06 22:22:32 +01:00
parent d45c1c9d97
commit fcf5d20d7b

View file

@ -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