浏览代码

Fixed example. For some reason the clearColor was killing the shadows (and antialias, something to do with alpha I guess).

Mr.doob 13 年之前
父节点
当前提交
f8a33248fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_geometry_colors.html

+ 1 - 1
examples/webgl_geometry_colors.html

@@ -157,7 +157,7 @@
 				group3.rotation.x = 0;
 				group3.rotation.x = 0;
 				scene.add( group3 );
 				scene.add( group3 );
 
 
-				renderer = new THREE.WebGLRenderer( { antialias: true, clearColor: 0xffffff } );
+				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 
 				container.appendChild( renderer.domElement );
 				container.appendChild( renderer.domElement );