mirror of
https://github.com/photonstorm/phaser
synced 2025-01-11 04:38:51 +00:00
13 lines
347 B
JavaScript
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
|