Skip to content

Commit

Permalink
WebXRManager: Removed getCamera() and added setUserCamera(). (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jun 30, 2023
1 parent 9cc9b3a commit d95c912
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion types/three/src/renderers/webxr/WebXRManager.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,47 @@ export class WebXRManager extends EventDispatcher {

/**
* @default true
* @deprecated
*/
cameraAutoUpdate: boolean;

getController(index: number): XRTargetRaySpace;

getControllerGrip(index: number): XRGripSpace;

getHand(index: number): XRHandSpace;

setFramebufferScaleFactor(value: number): void;

setReferenceSpaceType(value: XRReferenceSpaceType): void;

getReferenceSpace(): XRReferenceSpace | null;

setReferenceSpace(value: XRReferenceSpace): void;

getBaseLayer(): XRWebGLLayer | XRProjectionLayer;

getBinding(): XRWebGLBinding;

getFrame(): XRFrame;

getSession(): XRSession | null;

setSession(value: XRSession | null): Promise<void>;

/**
* @deprecated
*/
getCamera(): WebXRArrayCamera;
updateCamera(camera: PerspectiveCamera): void;

setUserCamera(camera: PerspectiveCamera): void;

updateCameraXR(camera: PerspectiveCamera): void;

setAnimationLoop(callback: XRFrameRequestCallback | null): void;

getFoveation(): number | undefined;

setFoveation(value: number): void;

dispose(): void;
Expand Down

0 comments on commit d95c912

Please sign in to comment.