Browse Source

Fixed yet more breakage in the examples. Only one left.

Mr.doob 12 years ago
parent
commit
36e2ec91c4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      examples/webgl_multiple_views.html

+ 5 - 5
examples/webgl_multiple_views.html

@@ -59,7 +59,7 @@
 					bottom: 0,
 					bottom: 0,
 					width: 0.5,
 					width: 0.5,
 					height: 1.0,
 					height: 1.0,
-					background: { r: 0.5, g: 0.5, b: 0.7, a: 1 },
+					background: new THREE.Color().setRGB( 0.5, 0.5, 0.7 ),
 					eye: [ 0, 300, 1800 ],
 					eye: [ 0, 300, 1800 ],
 					up: [ 0, 1, 0 ],
 					up: [ 0, 1, 0 ],
 					fov: 30,
 					fov: 30,
@@ -74,7 +74,7 @@
 					bottom: 0,
 					bottom: 0,
 					width: 0.5,
 					width: 0.5,
 					height: 0.5,
 					height: 0.5,
-					background: { r: 0.7, g: 0.5, b: 0.5, a: 1 },
+					background: new THREE.Color().setRGB( 0.7, 0.5, 0.5 ),
 					eye: [ 0, 1800, 0 ],
 					eye: [ 0, 1800, 0 ],
 					up: [ 0, 0, 1 ],
 					up: [ 0, 0, 1 ],
 					fov: 45,
 					fov: 45,
@@ -89,7 +89,7 @@
 					bottom: 0.5,
 					bottom: 0.5,
 					width: 0.5,
 					width: 0.5,
 					height: 0.5,
 					height: 0.5,
-					background: { r: 0.5, g: 0.7, b: 0.7, a: 1 },
+					background: new THREE.Color().setRGB( 0.5, 0.7, 0.7 ),
 					eye: [ 1400, 800, 1400 ],
 					eye: [ 1400, 800, 1400 ],
 					up: [ 0, 1, 0 ],
 					up: [ 0, 1, 0 ],
 					fov: 60,
 					fov: 60,
@@ -230,7 +230,7 @@
 				group3.rotation.x = 0;
 				group3.rotation.x = 0;
 				scene.add( group3 );
 				scene.add( group3 );
 
 
-				renderer = new THREE.WebGLRenderer( { antialias: true } );
+				renderer = new THREE.WebGLRenderer( { antialias: true, alpha: false } );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
 
 
 				container.appendChild( renderer.domElement );
 				container.appendChild( renderer.domElement );
@@ -290,7 +290,7 @@
 					renderer.setViewport( left, bottom, width, height );
 					renderer.setViewport( left, bottom, width, height );
 					renderer.setScissor( left, bottom, width, height );
 					renderer.setScissor( left, bottom, width, height );
 					renderer.enableScissorTest ( true );
 					renderer.enableScissorTest ( true );
-					renderer.setClearColor( view.background, view.background.a );
+					renderer.setClearColor( view.background );
 
 
 					camera.aspect = width / height;
 					camera.aspect = width / height;
 					camera.updateProjectionMatrix();
 					camera.updateProjectionMatrix();