mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Fixed emitter mask pipeline
This commit is contained in:
parent
1ab83e7ed4
commit
09c49ac288
1 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,7 @@ var ParticleManagerWebGLRenderer = function (renderer, emitterManager, camera, p
|
|||
return;
|
||||
}
|
||||
|
||||
var pipeline = renderer.pipelines.set(this.pipeline);
|
||||
var pipeline = renderer.pipelines.set(emitterManager.pipeline);
|
||||
|
||||
var camMatrix = tempMatrix1;
|
||||
var calcMatrix = tempMatrix2;
|
||||
|
@ -92,7 +92,7 @@ var ParticleManagerWebGLRenderer = function (renderer, emitterManager, camera, p
|
|||
{
|
||||
emitter.mask.preRenderWebGL(renderer, emitter, camera);
|
||||
|
||||
// pipeline.setTexture2D(texture, 0);
|
||||
renderer.pipelines.set(emitterManager.pipeline);
|
||||
}
|
||||
|
||||
var tintEffect = 0;
|
||||
|
@ -148,8 +148,6 @@ var ParticleManagerWebGLRenderer = function (renderer, emitterManager, camera, p
|
|||
if (emitter.mask)
|
||||
{
|
||||
emitter.mask.postRenderWebGL(renderer, camera);
|
||||
|
||||
// pipeline.setTexture2D(texture, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue