mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 00:47:29 +00:00
New build
This commit is contained in:
parent
b96e15f2ec
commit
87791be8ac
2 changed files with 41 additions and 13 deletions
52
plugins/spine/dist/SpinePluginDebug.js
vendored
52
plugins/spine/dist/SpinePluginDebug.js
vendored
|
@ -2398,32 +2398,32 @@ var GeometryMask = new Class({
|
|||
|
||||
renderer.maskCount--;
|
||||
|
||||
// Force flush before disabling stencil test
|
||||
renderer.flush();
|
||||
|
||||
var current = renderer.currentMask;
|
||||
|
||||
if (renderer.maskStack.length === 0)
|
||||
{
|
||||
// If this is the only mask in the stack, flush and disable
|
||||
renderer.flush();
|
||||
|
||||
renderer.currentMask.mask = null;
|
||||
current.mask = null;
|
||||
|
||||
gl.disable(gl.STENCIL_TEST);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Force flush before disabling stencil test
|
||||
renderer.flush();
|
||||
|
||||
var prev = renderer.maskStack[renderer.maskStack.length - 1];
|
||||
|
||||
prev.mask.applyStencil(renderer, prev.camera, false);
|
||||
|
||||
if (renderer.currentCameraMask.mask !== prev.mask)
|
||||
{
|
||||
renderer.currentMask.mask = prev.mask;
|
||||
renderer.currentMask.camera = prev.camera;
|
||||
current.mask = prev.mask;
|
||||
current.camera = prev.camera;
|
||||
}
|
||||
else
|
||||
{
|
||||
renderer.currentMask.mask = null;
|
||||
current.mask = null;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -33845,11 +33845,39 @@ var SpineContainerWebGLRenderer = function (renderer, container, camera, parentM
|
|||
|
||||
for (var i = 0; i < children.length; i++)
|
||||
{
|
||||
var src = children[i];
|
||||
var child = children[i];
|
||||
|
||||
if (src.willRender(camera))
|
||||
if (child.willRender(camera))
|
||||
{
|
||||
src.renderWebGL(renderer, src, camera, transformMatrix, container);
|
||||
var mask = child.mask;
|
||||
|
||||
if (mask)
|
||||
{
|
||||
sceneRenderer.end();
|
||||
|
||||
renderer.pipelines.rebind();
|
||||
|
||||
mask.preRenderWebGL(renderer, child, camera);
|
||||
|
||||
renderer.pipelines.clear();
|
||||
|
||||
sceneRenderer.begin();
|
||||
}
|
||||
|
||||
child.renderWebGL(renderer, child, camera, transformMatrix, container);
|
||||
|
||||
if (mask)
|
||||
{
|
||||
sceneRenderer.end();
|
||||
|
||||
renderer.pipelines.rebind();
|
||||
|
||||
mask.postRenderWebGL(renderer, camera);
|
||||
|
||||
renderer.pipelines.clear();
|
||||
|
||||
sceneRenderer.begin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
plugins/spine/dist/SpinePluginDebug.js.map
vendored
2
plugins/spine/dist/SpinePluginDebug.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue