mirror of
https://github.com/photonstorm/phaser
synced 2025-01-25 11:25:15 +00:00
18 lines
373 B
JavaScript
18 lines
373 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;
|