The code work, but I’m having a problem setting transparent background to the canvas with three.js. I use: But then the background gets black. How do I change it to be transparent? The code: Answer If you want a transparent background in three.js, you need pass in the alpha parameter to the WebGLRenderer constructor. You can leave the clear color