phaser/v3/src/gameobjects/mesh/MeshWebGLRenderer.js
2017-05-18 15:57:05 -04:00

13 lines
347 B
JavaScript

var MeshWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask !== this.renderFlags)
{
return;
}
if (src.indices.length > 0)
renderer.spriteBatch.addMeshIndexed(src, camera);
else
renderer.spriteBatch.addMesh(src, camera);
};
module.exports = MeshWebGLRenderer