Skip to content

Commit fc2db04

Browse files
committed
Tweaked pointer lock example.
1 parent 1f512a9 commit fc2db04

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

examples/misc_controls_pointerlock.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>three.js - pointer lock</title>
66
<style>
77
html, body {
8+
width: 100%;
89
height: 100%;
910
}
1011

@@ -18,11 +19,19 @@
1819
#blocker {
1920

2021
position: absolute;
22+
2123
width: 100%;
2224
height: 100%;
2325

2426
background-color: rgba(0,0,0,0.5);
2527

28+
}
29+
30+
#instructions {
31+
32+
width: 100%;
33+
height: 100%;
34+
2635
display: -webkit-box;
2736
display: -moz-box;
2837
display: box;
@@ -39,10 +48,6 @@
3948
-moz-box-align: center;
4049
box-align: center;
4150

42-
}
43-
44-
#instructions {
45-
4651
color: #ffffff;
4752
text-align: center;
4853

@@ -180,7 +185,7 @@
180185
light.position.set( 1, 1, 1 );
181186
scene.add( light );
182187

183-
var light = new THREE.DirectionalLight( 0xffffff );
188+
var light = new THREE.DirectionalLight( 0xffffff, 0.75 );
184189
light.position.set( -1, - 0.5, -1 );
185190
scene.add( light );
186191

0 commit comments

Comments
 (0)