Browse Source

Updated webvr examples.

Mr.doob 7 years ago
parent
commit
6bb8268cf2

+ 2 - 2
examples/webvr_cubes.html

@@ -5,7 +5,7 @@
 		<meta charset="utf-8">
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
 		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
 		<!-- Origin Trial Token, feature = WebVR (For Chrome M62+), origin = https://threejs.org, expires = 2018-06-19 -->
 		<!-- Origin Trial Token, feature = WebVR (For Chrome M62+), origin = https://threejs.org, expires = 2018-06-19 -->
-		<meta http-equiv="origin-trial" data-feature="WebVR (For Chrome M62+)" data-expires="2018-06-19" content="Alxt96tYGgIr9l6EXU0eeI360zcmzOY6Kuo3kcTfBGIRDOQbgFIZKRQ1joExQ74WZr1einsE+cUMHgSclNHCQQ4AAABQeyJvcmlnaW4iOiJodHRwczovL3RocmVlanMub3JnOjQ0MyIsImZlYXR1cmUiOiJXZWJWUjEuMU02MiIsImV4cGlyeSI6MTUyOTM5NzgyOH0="> 
+		<meta http-equiv="origin-trial" data-feature="WebVR (For Chrome M62+)" data-expires="2018-06-19" content="Alxt96tYGgIr9l6EXU0eeI360zcmzOY6Kuo3kcTfBGIRDOQbgFIZKRQ1joExQ74WZr1einsE+cUMHgSclNHCQQ4AAABQeyJvcmlnaW4iOiJodHRwczovL3RocmVlanMub3JnOjQ0MyIsImZlYXR1cmUiOiJXZWJWUjEuMU02MiIsImV4cGlyeSI6MTUyOTM5NzgyOH0=">
 		<!-- Origin Trial Token, feature = WebXR Device API, origin = https://threejs.org, expires = 2018-06-15 -->
 		<!-- Origin Trial Token, feature = WebXR Device API, origin = https://threejs.org, expires = 2018-06-15 -->
 		<meta http-equiv="origin-trial" data-feature="WebXR Device API" data-expires="2018-06-15" content="AtJH9g6nn0B87bnjJt+9m1joZXEYDmLSlRvtMr5qJD52hMcm3S86S7jg5I7y2I5cgQglE0rzsXzti5DECQLb8QkAAABQeyJvcmlnaW4iOiJodHRwczovL3RocmVlanMub3JnOjQ0MyIsImZlYXR1cmUiOiJXZWJYUkRldmljZSIsImV4cGlyeSI6MTUyOTA4NDY2OH0=">
 		<meta http-equiv="origin-trial" data-feature="WebXR Device API" data-expires="2018-06-15" content="AtJH9g6nn0B87bnjJt+9m1joZXEYDmLSlRvtMr5qJD52hMcm3S86S7jg5I7y2I5cgQglE0rzsXzti5DECQLb8QkAAABQeyJvcmlnaW4iOiJodHRwczovL3RocmVlanMub3JnOjQ0MyIsImZlYXR1cmUiOiJXZWJYUkRldmljZSIsImV4cGlyeSI6MTUyOTA4NDY2OH0=">
 		<!-- Origin Trial Token, feature = WebXR Gamepad Support, origin = https://threejs.org, expires = 2018-06-15 -->
 		<!-- Origin Trial Token, feature = WebXR Gamepad Support, origin = https://threejs.org, expires = 2018-06-15 -->
@@ -180,7 +180,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_daydream.html

@@ -140,7 +140,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_gearvr.html

@@ -165,7 +165,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_panorama.html

@@ -130,7 +130,7 @@
 
 
 		function animate() {
 		function animate() {
 
 
-			renderer.animate( render );
+			renderer.setAnimationLoop( render );
 
 
 		}
 		}
 
 

+ 1 - 1
examples/webvr_rollercoaster.html

@@ -247,7 +247,7 @@
 
 
 			}
 			}
 
 
-			renderer.animate( render );
+			renderer.setAnimationLoop( render );
 
 
 		</script>
 		</script>
 
 

+ 1 - 1
examples/webvr_sandbox.html

@@ -151,7 +151,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_video.html

@@ -159,7 +159,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_vive.html

@@ -204,7 +204,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_vive_dragging.html

@@ -293,7 +293,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_vive_paint.html

@@ -417,7 +417,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}
 
 

+ 1 - 1
examples/webvr_vive_sculpt.html

@@ -216,7 +216,7 @@
 
 
 			function animate() {
 			function animate() {
 
 
-				renderer.animate( render );
+				renderer.setAnimationLoop( render );
 
 
 			}
 			}