Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaked pointer lock example.

  • Loading branch information...
commit fc2db0457319f4fac8ade940e694a47d3486718f 1 parent 1f512a9
@mrdoob authored
Showing with 10 additions and 5 deletions.
  1. +10 −5 examples/misc_controls_pointerlock.html
View
15 examples/misc_controls_pointerlock.html
@@ -5,6 +5,7 @@
<title>three.js - pointer lock</title>
<style>
html, body {
+ width: 100%;
height: 100%;
}
@@ -18,11 +19,19 @@
#blocker {
position: absolute;
+
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
+ }
+
+ #instructions {
+
+ width: 100%;
+ height: 100%;
+
display: -webkit-box;
display: -moz-box;
display: box;
@@ -39,10 +48,6 @@
-moz-box-align: center;
box-align: center;
- }
-
- #instructions {
-
color: #ffffff;
text-align: center;
@@ -180,7 +185,7 @@
light.position.set( 1, 1, 1 );
scene.add( light );
- var light = new THREE.DirectionalLight( 0xffffff );
+ var light = new THREE.DirectionalLight( 0xffffff, 0.75 );
light.position.set( -1, - 0.5, -1 );
scene.add( light );
Please sign in to comment.
Something went wrong with that request. Please try again.