2017-09-12 23:58:25 +00:00
|
|
|
var GameObject = require('../GameObject');
|
|
|
|
|
2017-04-25 22:09:13 +00:00
|
|
|
var TileSpriteWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
|
|
|
|
{
|
2017-09-12 23:58:25 +00:00
|
|
|
if (GameObject.RENDER_MASK !== src.renderFlags || (src.cameraFilter > 0 && (src.cameraFilter & camera._id)))
|
2017-04-25 22:09:13 +00:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2017-07-04 11:36:27 +00:00
|
|
|
|
2017-05-02 20:57:21 +00:00
|
|
|
src.updateTileTexture();
|
2017-07-04 11:36:27 +00:00
|
|
|
|
2017-04-28 18:10:32 +00:00
|
|
|
renderer.tileBatch.addTileSprite(src, camera);
|
2017-04-25 22:09:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = TileSpriteWebGLRenderer;
|