File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments