Browse Source

GearVRController: Clean up.

Mr.doob 7 years ago
parent
commit
522878ea49
3 changed files with 5 additions and 8 deletions
  1. 1 0
      examples/files.js
  2. 3 7
      examples/js/vr/GearVRController.js
  3. 1 1
      examples/webvr_gearvr.html

+ 1 - 0
examples/files.js

@@ -299,6 +299,7 @@ var files = {
 	"webvr": [
 	"webvr": [
 		"webvr_cubes",
 		"webvr_cubes",
 		"webvr_daydream",
 		"webvr_daydream",
+		"webvr_gearvr",
 		"webvr_panorama",
 		"webvr_panorama",
 		"webvr_rollercoaster",
 		"webvr_rollercoaster",
 		"webvr_sandbox",
 		"webvr_sandbox",

+ 3 - 7
examples/js/vr/GearVRController.js

@@ -1,4 +1,6 @@
-
+/**
+ * @author servinlp
+ */
 
 
 THREE.GearVRController = function () {
 THREE.GearVRController = function () {
 
 
@@ -32,12 +34,6 @@ THREE.GearVRController = function () {
 
 
 	}
 	}
 
 
-	this.setSkyBox = function ( skyBox ) {
-
-		window.SamsungChangeSky( skyBox );
-
-	};
-
 	this.setHand = function ( hand = 'right' ) {
 	this.setHand = function ( hand = 'right' ) {
 
 
 		var handPos;
 		var handPos;

+ 1 - 1
examples/webvr_gear_vr.html → examples/webvr_gearvr.html

@@ -136,7 +136,7 @@
 
 
 				if ( 'SamsungChangeSky' in window ) {
 				if ( 'SamsungChangeSky' in window ) {
 
 
-					controller.setSkyBox( skyBox );
+					window.SamsungChangeSky( skyBox );
 
 
 				}
 				}