浏览代码

Added vr folder in examples/js.

Mr.doob 8 年之前
父节点
当前提交
a28f285f94

+ 0 - 0
examples/js/ViveController.js → examples/js/vr/ViveController.js


+ 0 - 0
examples/js/WebVR.js → examples/js/vr/WebVR.js


+ 2 - 2
examples/webvr_cubes.html

@@ -21,9 +21,9 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script>
 

+ 1 - 1
examples/webvr_panorama.html

@@ -17,9 +17,9 @@
 	<body>
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
 		<script src="js/controls/VRControls.js"></script>
 		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script>
 

+ 2 - 2
examples/webvr_rollercoaster.html

@@ -23,9 +23,9 @@
 
 		<script src="js/RollerCoaster.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script>
 

+ 2 - 1
examples/webvr_shadow.html

@@ -15,9 +15,10 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
 		<script src="js/controls/VRControls.js"></script>
 		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/WebVR.js"></script>
+
 		<script>
 
 			if ( WEBVR.isLatestAvailable() === false ) {

+ 2 - 2
examples/webvr_video.html

@@ -32,9 +32,9 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script>
 

+ 3 - 3
examples/webvr_vive.html

@@ -21,10 +21,10 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
-		<script src="js/ViveController.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/ViveController.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script src="js/loaders/OBJLoader.js"></script>
 

+ 3 - 3
examples/webvr_vive_dragging.html

@@ -21,10 +21,10 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
-		<script src="js/ViveController.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/ViveController.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script src="js/loaders/OBJLoader.js"></script>
 

+ 3 - 4
examples/webvr_vive_paint.html

@@ -21,10 +21,10 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
-		<script src="js/ViveController.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/ViveController.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script src="js/loaders/OBJLoader.js"></script>
 
@@ -137,7 +137,6 @@
 				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
-				renderer.domElement.style.width = ( window.innerWidth * 2 ) + 'px';
 				renderer.sortObjects = false;
 				renderer.shadowMap.enabled = true;
 				renderer.gammaInput = true;

+ 3 - 4
examples/webvr_vive_sculpt.html

@@ -21,10 +21,10 @@
 
 		<script src="../build/three.js"></script>
 
-		<script src="js/WebVR.js"></script>
-		<script src="js/effects/VREffect.js"></script>
 		<script src="js/controls/VRControls.js"></script>
-		<script src="js/ViveController.js"></script>
+		<script src="js/effects/VREffect.js"></script>
+		<script src="js/vr/ViveController.js"></script>
+		<script src="js/vr/WebVR.js"></script>
 
 		<script src="js/loaders/OBJLoader.js"></script>
 		<script src="js/MarchingCubes.js"></script>
@@ -118,7 +118,6 @@
 				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( window.innerWidth, window.innerHeight );
-				renderer.domElement.style.width = ( window.innerWidth * 2 ) + 'px';
 				renderer.sortObjects = false;
 				renderer.shadowMap.enabled = true;
 				renderer.gammaInput = true;