Fixed emitter mask pipeline

This commit is contained in:
Richard Davey 2020-11-24 14:52:57 +00:00
parent 1ab83e7ed4
commit 09c49ac288

View file

@ -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);
}
}