Skip to content

Commit 4b607a3

Browse files
committed
Removed cull tests
1 parent 7ea5376 commit 4b607a3

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/tilemaps/staticlayer/StaticTilemapLayer.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,7 @@ var StaticTilemapLayer = new Class({
237237
var row;
238238
var col;
239239
var texCoords;
240-
241-
var boundsLeft = camera.worldBounds.left;
242-
var boundsRight = camera.worldBounds.right;
243-
var boundsTop = camera.worldBounds.top;
244-
var boundsBottom = camera.worldBounds.bottom;
245-
240+
246241
var vertexBuffer = this.vertexBuffer;
247242
var bufferData = this.bufferData;
248243
var voffset = -1;
@@ -282,20 +277,12 @@ var StaticTilemapLayer = new Class({
282277
var txw = tx + tile.width;
283278
var tyh = ty + tile.height;
284279

285-
var tilePixelX = (tx + this.x);
286-
var tilePixelY = (ty + this.y);
287-
288280
texCoords = tileset.getTileTextureCoordinates(tile.index);
289281

290282
if (!texCoords)
291283
{
292284
continue;
293285
}
294-
295-
if (!texCoords || tilePixelX < boundsLeft || tilePixelX > boundsRight || tilePixelY < boundsTop || tilePixelY > boundsBottom)
296-
{
297-
// continue;
298-
}
299286

300287
var u0 = texCoords.x / width;
301288
var v0 = texCoords.y / height;

0 commit comments

Comments
 (0)