I’m trying to render a scene by doing it in 2 calls, one that renders certain layer, and then another one that renders another layer.
I’m defining layers on objects via:
camera.layers.disable(1);
camera.layers.enable(0);
renderer.render(scene,camera);
camera.layers.disable(0);
camera.layers.enable(1);
renderer.render(scene,camera);
This is working great, I’ve managed to render one layer first, then the other one, and have them put one on top of the other.
But…
I’m trying to do some occlusion with Layer 1, it has materials with blending = THREE.NoBlending
Problem is, this NoBlending
effect is also affecting the second-render layer. Thought it was going to render transparent, but it seems that the NoBlending is affecting both layers.
Is there a way I could have NoBlending
occlusion effect to affect only certain objects or certain layers?
I tried rendering to another RenderTarget, and then use it as a texture, but that brings a lot of complexity that I want to avoid.
Any suggstions?
Thanks in advance.