透明背景与three.js
代码可以工作,但是我在使用three.js为画布设置透明背景时遇到了问题。我用: Background.renderer.setClearColor(0xffffff, 0); 但随后背景变黑。如何将其更改为透明的? 代码: var camera, scene, renderer; var mouseX = 0, mouseY = 0; var p; var windowHalfX = site.Width / 2; var windowHalfY = site.Height / 2; Background.camera = new THREE.PerspectiveCamera( 35, site.Width / site.Height, 1, 2000 ); Background.camera.position.z = 300; //camera.position.y = 200; // scene Background.scene …