Render Multiple Outputs on the Same Screen
Explore how to render multiple EffectComposer outputs on a single screen using Three.js by setting viewports and managing the render loop. Understand how to divide the screen into sections for different postprocessing effects while preventing render clearing between passes.
We'll cover the following...
We'll cover the following...
Output of multiple renderers on the same screen
This lesson won’t go into detail on how to use postprocessing effects but will explain how to get the output of all four EffectComposer instances on the same screen. First, let’s look at the render loop used for this example:
The first thing to notice is that we set the renderer.autoClear property to false (line 6) and then explicitly call the clear() function in the render loop (line 7). If we don’t ...