Is it possible to display a cube map reflection on an object without showing the cubemap in the background?
I am interested in achieving a reflection on a lever mechanism without the cubemap being visible in the background. Instead, I would like the background to have a gradient from blue to white.
In essence, I want the cubemap to only be visible on the object itself.
Thank you in advance for any insights or solutions!
https://i.sstatic.net/8EMdT.jpg
https://i.sstatic.net/b2IUH.jpg
<script>
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var container;
var loader;
var camera, cameraTarget, controls, scene, renderer;
init();
animate();
// Rest of the code display unchanged
</script>