Skip to content

Commit

Permalink
Switched units for more pronounced IPD (now showing a 50cm ^ 3 cube a…
Browse files Browse the repository at this point in the history
…t 1m)
  • Loading branch information
borismus committed Mar 23, 2015
1 parent 5f37bbe commit 390458a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
var scene = new THREE.Scene();

// Create a three.js camera
var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 10000);
var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.3, 10000);

// Apply VR headset positional data to camera.
var controls = new THREE.VRControls(camera);
Expand All @@ -72,12 +72,12 @@
var vrmgr = new WebVRManager(effect);

// Create 3d objects
var geometry = new THREE.BoxGeometry(10, 10, 10);
var geometry = new THREE.BoxGeometry(0.5, 0.5, 0.5);
var material = new THREE.MeshNormalMaterial();
var cube = new THREE.Mesh(geometry, material);

// Position cube mesh
cube.position.z = -20;
cube.position.z = -1;

// Add cube mesh to your three.js scene
scene.add(cube);
Expand Down

0 comments on commit 390458a

Please sign in to comment.