Explorar o código

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

Mr.doob %!s(int64=13) %!d(string=hai) anos
pai
achega
f8a33248fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgl_geometry_colors.html

+ 1 - 1
examples/webgl_geometry_colors.html

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