mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
15 lines
486 B
JavaScript
15 lines
486 B
JavaScript
var GameObject = require('../GameObject');
|
|
var Utils = require('../../renderer/webgl/Utils');
|
|
|
|
var TileSpriteWebGLRenderer = function (renderer, tileSprite, interpolationPercentage, camera)
|
|
{
|
|
if (GameObject.RENDER_MASK !== tileSprite.renderFlags || (tileSprite.cameraFilter > 0 && (tileSprite.cameraFilter & camera._id)))
|
|
{
|
|
return;
|
|
}
|
|
|
|
tileSprite.updateTileTexture();
|
|
this.pipeline.batchTileSprite(this, camera);
|
|
};
|
|
|
|
module.exports = TileSpriteWebGLRenderer;
|