-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix ARButton constructor parameters ARButton can specify WebXR session initialization options when the button is clicked. In particular, it offers the ability to define the `domOverlay` property allow DOM elements to render on top of the AR session. * Add missing `envMap` field to `XRControllerModelFactory` * Provide more-specific type definition for `motionController` field In OculusHandModel and OculusHandPointerModel, the motionController field will be set to an XRHandMeshModel value. * Specify type for `XREstimatedLight`'s `lightProbe` field. The lightProbe field is a regular Three.js LightProbe object. * Fix `XRHandModelFactory`'s `createHandModel`'s `profile` parameter The value of "oculus" has not been used for nearly a year. A more generic "mesh" value has been available since r129. * add to contributors * Use the complete WebXR types from DefinitelyTyped * revert yarn.lock * try running yarn install
- Loading branch information
1 parent
ffbbd45
commit b1673e1
Showing
15 changed files
with
54 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { WebGLRenderer } from '../../../src/Three'; | ||
|
||
export interface ARButtonSessionInit extends XRSessionInit { | ||
domOverlay: { root: HTMLElement }; | ||
} | ||
|
||
export namespace ARButton { | ||
function createButton(renderer: WebGLRenderer, sessionInit?: any): HTMLElement; | ||
function createButton(renderer: WebGLRenderer, sessionInit?: Partial<ARButtonSessionInit>): HTMLElement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.