phaser/src/gameobjects/tilesprite/TileSpriteWebGLRenderer.js
2018-01-30 00:38:31 -03:00

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;