1

I want to set the background color to blank, using the renderer.setClearColor (0xff0000, 0)[setClearColor ]:Changing three.js background to transparent or other color, setting the opacity to 0, although the background is not there, but on the page, there is almost no model

I have added some photo instructions,but the reputation is not enough, please check the link :https://github.com/shunzizhan/threejsDemo/wiki/three-scene

shunzizhan
  • 23
  • 4

1 Answers1

1
this.renderer = new WebGLRenderer({
  antialias: true,
  alpha: true
})

Set properties alpha true and then

this.renderer.setClearColor(0xffffff, 0)

it works

shunzizhan
  • 23
  • 4