Spine Plugin updated for Beta 6

This commit is contained in:
Richard Davey 2020-09-11 16:53:50 +01:00
parent e7245d11cc
commit 18d0d58cb5
4 changed files with 1310 additions and 4080 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -36,7 +36,7 @@ var SpineContainerWebGLRenderer = function (renderer, container, interpolationPe
{
sceneRenderer.end();
renderer.rebindPipeline();
renderer.pipelines.rebind();
}
return;
@ -66,7 +66,7 @@ var SpineContainerWebGLRenderer = function (renderer, container, interpolationPe
if (renderer.newType)
{
// flush + clear if this is a new type
renderer.clearPipeline();
renderer.pipelines.clear();
sceneRenderer.begin();
}
@ -161,7 +161,7 @@ var SpineContainerWebGLRenderer = function (renderer, container, interpolationPe
sceneRenderer.end();
// And rebind the previous pipeline
renderer.rebindPipeline();
renderer.pipelines.rebind();
}
};

View file

@ -43,7 +43,7 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
// The next object in the display list is not a Spine object, so we end the batch
sceneRenderer.end();
renderer.rebindPipeline();
renderer.pipelines.rebind();
}
if (!renderer.finalType)
@ -58,7 +58,7 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
if (renderer.newType)
{
// flush + clear previous pipeline if this is a new type
renderer.clearPipeline();
renderer.pipelines.clear();
}
var camMatrix = renderer._tempMatrix1;
@ -162,7 +162,7 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
sceneRenderer.end();
// And rebind the previous pipeline
renderer.rebindPipeline();
renderer.pipelines.rebind();
}
};