Pārlūkot izejas kodu

GearVRController: Clean up.

Mr.doob 7 gadi atpakaļ
vecāks
revīzija
522878ea49

+ 1 - 0
examples/files.js

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

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

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

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

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