Przeglądaj źródła

Adding logic to provide your own VR button

David Rousset 7 lat temu
rodzic
commit
6e3e99e683

Plik diff jest za duży
+ 1657 - 1654
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 5 - 5
dist/preview release/babylon.js


Plik diff jest za duży
+ 47 - 24
dist/preview release/babylon.max.js


Plik diff jest za duży
+ 1657 - 1654
dist/preview release/babylon.module.d.ts


Plik diff jest za duży
+ 5 - 5
dist/preview release/babylon.worker.js


Plik diff jest za duży
+ 8324 - 8321
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Plik diff jest za duży
+ 4 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


Plik diff jest za duży
+ 47 - 24
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js


Plik diff jest za duży
+ 8324 - 8321
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


Plik diff jest za duży
+ 14 - 14
dist/preview release/inspector/babylon.inspector.bundle.js


Plik diff jest za duży
+ 47 - 24
src/Cameras/VR/babylon.vrExperienceHelper.ts


+ 2 - 0
src/Cameras/VR/babylon.webVRCamera.ts

@@ -35,6 +35,8 @@ module BABYLON {
         displayName?: string; //if there are more than one VRDisplays.
         controllerMeshes?: boolean; // should the native controller meshes be initialized
         defaultLightingOnControllers?: boolean; // creating a default HemiLight only on controllers
+        useCustomVRButton?: boolean; // if you don't want to use the default VR button of the helper
+        customVRButton?: HTMLButtonElement; //if you'd like to provide your own button to the VRHelper
     }
 
     export class WebVRFreeCamera extends FreeCamera implements PoseControlled {