We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0c729 commit 738f5d0Copy full SHA for 738f5d0
1 file changed
public/scripts.js
@@ -41,6 +41,17 @@ scene.add(lights[0]);
41
scene.add(lights[1]);
42
scene.add(lights[2]);
43
44
+var plane = new THREE.Mesh(
45
+ new THREE.PlaneBufferGeometry( 1000, 1000 ),
46
+ new THREE.MeshBasicMaterial( { color: 0x997744 } )
47
+);
48
+plane.rotation.x = - Math.PI / 2;
49
+plane.position.y = -1;
50
+//plane.receiveShadow = true;
51
+scene.add( plane );
52
+
53
+scene.background = new THREE.Color( 0x99ffff );
54
55
var jumping = false;
56
var jump_distance = 0.1;
57
var acceleration = 0.0025;
0 commit comments