From a0bc0e066167969cd2edb95b9999fdca152aba57 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 13 Nov 2011 21:24:56 +0100 Subject: [PATCH] Removed unneeded code in canvas_materials_depth example. --- examples/canvas_materials_depth.html | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/examples/canvas_materials_depth.html b/examples/canvas_materials_depth.html index 6f159959..9cdcd7ae 100644 --- a/examples/canvas_materials_depth.html +++ b/examples/canvas_materials_depth.html @@ -100,21 +100,6 @@ } - // Lights - - var ambientLight = new THREE.AmbientLight( Math.random() * 0x202020 ); - scene.add( ambientLight ); - - var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff ); - directionalLight.position.x = Math.random() - 0.5; - directionalLight.position.y = Math.random() - 0.5; - directionalLight.position.z = Math.random() - 0.5; - directionalLight.position.normalize(); - scene.add( directionalLight ); - - var pointLight = new THREE.PointLight( 0xff0000, 1 ); - scene.add( pointLight ); - renderer = new THREE.CanvasRenderer(); renderer.setSize( window.innerWidth, window.innerHeight );