Changing three.js background to transparent or other color

后端 未结 6 1220
误落风尘
误落风尘 2020-11-28 02:55

I\'ve been trying to change what seems to be the default background color of my canvas from black to transparent / any other color - but no luck.

My HTML:

         


        
6条回答
  •  渐次进展
    2020-11-28 03:45

    I'd also like to add that if using the three.js editor don't forget to set the background colour to clear as well in the index.html.

    background-color:#00000000
    

提交回复
热议问题