phaser/src/gameobjects/particles/ParticleManagerWebGLRenderer.js

16 lines
508 B
JavaScript
Raw Normal View History

var GameObject = require('../GameObject');
var ParticleManagerWebGLRenderer = function (renderer, emitterManager, interpolationPercentage, camera)
{
var emitters = emitterManager.emitters;
if (emitters.length === 0 || GameObject.RENDER_MASK !== emitterManager.renderFlags || (emitterManager.cameraFilter > 0 && (emitterManager.cameraFilter & camera._id)))
{
return;
}
2018-01-29 21:46:48 +00:00
this.pipeline.drawEmitterManager(emitterManager, camera);
};
module.exports = ParticleManagerWebGLRenderer;