I set the transparent color.But chorme doesn’t show up properly.

Description of the problem

Firefox & safari can be implemented, but the background can’t be displayed in the background with the chrome threejs under the multi-layer dom structure.

I set the transparent color.Firefox & safari can be implemented,But chorme doesn’t show up properly.I have submitted the question to google.

renderer.setClearColor(0xffffff, 0);

templates ADDress:

http://www.luckhome.cn/threejs/index.html

Three.js version
  • r91
Browser
  • All of them
  • Chrome 65 & Chrome 64
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS 10.13.3
  • Linux
  • Android
  • iOS

Author: Fantashit

1 thought on “I set the transparent color.But chorme doesn’t show up properly.

  1. I’ve debugged your website one more time. Instead of setting renderer.setClearColor(0xffffff, 0);, create your renderer like this:

    renderer = new THREE.CanvasRenderer( { alpha: true } );

    In this way, your background image should work in Chrome, too.

Comments are closed.