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