phaser/v3/src/gameobjects/image/ImageWebGLRenderer.js

12 lines
315 B
JavaScript
Raw Normal View History

var ImageWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
2016-12-07 02:28:22 +00:00
{
2017-08-15 19:42:04 +00:00
if (this.renderMask !== this.renderFlags || (src.cameraFilter > 0 && (src.cameraFilter & camera._id)))
{
return;
}
renderer.spriteBatch.addSprite(src, camera);
2016-12-07 02:28:22 +00:00
};
module.exports = ImageWebGLRenderer;