mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Removed unneeded code in canvas_materials_depth example.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user