Actually a quite banal topic concerns me.
I have a codePen here for it. I have two scenes that I want to render on top of each other. This works exactly as it should with the both scenes. But when I use postprocessing this no longer works and in r166 it worked exactly as it should, like with the two scenes.
These two variants of the render loop should produce exactly the same result. But in r167 I only get the uiscene with postprocessing
Without postprocessing, its fine:
function render() {
requestAnimationFrame( render );
renderer.autoClearColor = true;
renderer.render(scene, camera);
//postProcessing.render();
renderer.autoClearColor = false;
renderer.render(uiscene, uicamera);
}
With postprocessing, only the uiscene is visible
function render() {
requestAnimationFrame( render );
renderer.autoClearColor = true;
//renderer.render(scene, camera);
postProcessing.render();
renderer.autoClearColor = false;
renderer.render(uiscene, uicamera);
}
There are no errors in the console and as mentioned it worked exactly as desired in r166. Something has changed with r167 but I’m not yet aware of what.