I'm attempting to create a camera (GUI camera) that renders above the scene camera. My idea was to make the GUI camera have a transparent background, allowing for visibility through it. However, it's not working as expected.
Here is how I defined the renderer:
renderer = new THREE.WebGLRenderer({antialias: true, alpha: true});
renderer.setSize(window.innerWidth, window.innerHeight);
I am trying to render in the following way:
// Render Main Camera
renderer.setClearColor(0x000000, 1);
renderer.render(scene, sceneCamera);
// Render GUI Camera
renderer.setClearColor(0x000000, 0);
renderer.render(scene, guiCamera);
I referenced this as an example for multiple viewports, but their viewports do not overlap like mine.
Thank you in advance.