Skip to content

Commit 67fcec8

Browse files
committed
ao
1 parent a627f5e commit 67fcec8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,16 @@
326326

327327
camera = new THREE.PerspectiveCamera(75, 2, 0.1, 1000);
328328
camera.rotation.order="YXZ"
329-
camera.position.set(25,25,25)
329+
camera.position.set(50,50,50)
330330
FirstPersonControls(document.getElementById("cross"),camera,0.07)
331331

332332

333333
var ambientLight = new THREE.AmbientLight( 0xcccccc );
334334
scene.add( ambientLight );
335+
var directionalLight = new THREE.DirectionalLight( 0x777777, 2 );
336+
directionalLight.position.set( 1, 1, 0.5 ).normalize();
337+
scene.add( directionalLight );
338+
scene.fog = new THREE.FogExp2( 0xffffff, 0.00015 );
335339
raycaster = new THREE.Raycaster();
336340
var mouse = {x:0,y:0};
337341

0 commit comments

Comments
 (0)