phaser/v3/src/gameobjects/mesh/MeshWebGLRenderer.js

14 lines
347 B
JavaScript
Raw Normal View History

2017-05-16 23:07:52 +00:00
var MeshWebGLRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask !== this.renderFlags)
{
return;
}
2017-05-18 19:57:05 +00:00
if (src.indices.length > 0)
renderer.spriteBatch.addMeshIndexed(src, camera);
else
renderer.spriteBatch.addMesh(src, camera);
2017-05-16 23:07:52 +00:00
};
module.exports = MeshWebGLRenderer