From 47d69fe49638a67ad4c2c704b2935b57ea8e2d2e Mon Sep 17 00:00:00 2001 From: alteredq Date: Thu, 24 Feb 2011 02:09:03 +0100 Subject: [PATCH] Fixed RTT and light test examples. --- examples/misc_lights_test.html | 80 +--------------------------------- examples/webgl_rtt.html | 14 +++--- 2 files changed, 7 insertions(+), 87 deletions(-) diff --git a/examples/misc_lights_test.html b/examples/misc_lights_test.html index d2a140d8..c03263ae 100644 --- a/examples/misc_lights_test.html +++ b/examples/misc_lights_test.html @@ -38,84 +38,8 @@

 
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-		
-
+		
+		
 		
 		
 
diff --git a/examples/webgl_rtt.html b/examples/webgl_rtt.html
index b8673776..2983f465 100644
--- a/examples/webgl_rtt.html
+++ b/examples/webgl_rtt.html
@@ -112,25 +112,23 @@
 				camera.position.z = 100;
 				camera.updateMatrix();
 
+				scene = new THREE.Scene();
 				sceneRTT = new THREE.Scene();
 				sceneScreen = new THREE.Scene();
-				scene = new THREE.Scene();
 
 				var light = new THREE.DirectionalLight( 0xffffff );
 				light.position.x = 0;
 				light.position.y = 0;
 				light.position.z = 1;
 				light.position.normalize();
-				scene.addLight( light );
 				sceneRTT.addLight( light );
-				sceneScreen.addLight( light );
-
-				light = new THREE.DirectionalLight( 0xffaaaa, 0.5 );
-				light.position.x = -1;
+				
+				light = new THREE.DirectionalLight( 0xffaaaa, 1.5 );
+				light.position.x = 0;
 				light.position.y = 0;
 				light.position.z = -1;
 				light.position.normalize();
-				scene.addLight( light );
+				sceneRTT.addLight( light );
 
 				rtTexture = new THREE.RenderTarget( window.innerWidth, window.innerHeight, { min_filter: THREE.LinearFilter, mag_filter: THREE.NearestFilter } );
 
@@ -281,8 +279,6 @@
 
 				renderer.render( scene, camera );
 
-				stats.update();
-
 			}