mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
15 lines
531 B
JavaScript
15 lines
531 B
JavaScript
var GameObject = require('../../GameObject');
|
|
var Utils = require('../../../renderer/webgl/Utils');
|
|
|
|
var DynamicTilemapLayerWebGLRenderer = function (renderer, tilemapLayer, interpolationPercentage, camera)
|
|
{
|
|
if (GameObject.RENDER_MASK !== tilemapLayer.renderFlags || (tilemapLayer.cameraFilter > 0 && (tilemapLayer.cameraFilter & camera._id)))
|
|
{
|
|
return;
|
|
}
|
|
|
|
tilemapLayer.cull(camera);
|
|
this.pipeline.batchDynamicTilemapLayer(tilemapLayer, camera);
|
|
};
|
|
|
|
module.exports = DynamicTilemapLayerWebGLRenderer;
|