If you want a transparent background in three.js, you need pass in the alpha
parameter to the WebGLRenderer
constructor.
var renderer = new THREE.WebGLRenderer( { alpha: true } );
You can leave the clear color at the default value.
renderer.setClearColor( 0x000000, 0 ); // the default
three.js r.71
You have also to set: scene.background = null;
Three.js v124
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With