Explorar o código

Added 'hand-tracking' in VRButton. Need to change to options though

Fernando Serrano %!s(int64=5) %!d(string=hai) anos
pai
achega
d53b4f55c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/webxr/VRButton.js

+ 1 - 1
examples/jsm/webxr/VRButton.js

@@ -71,7 +71,7 @@ var VRButton = {
 					// ('local' is always available for immersive sessions and doesn't need to
 					// ('local' is always available for immersive sessions and doesn't need to
 					// be requested separately.)
 					// be requested separately.)
 
 
-					var sessionInit = { optionalFeatures: [ 'local-floor', 'bounded-floor' ] };
+					var sessionInit = { optionalFeatures: [ 'local-floor', 'bounded-floor', 'hand-tracking' ] };
 					navigator.xr.requestSession( 'immersive-vr', sessionInit ).then( onSessionStarted );
 					navigator.xr.requestSession( 'immersive-vr', sessionInit ).then( onSessionStarted );
 
 
 				} else {
 				} else {