Skip to content

Commit

Permalink
chore: add three.js ar example
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Sep 27, 2023
1 parent c732029 commit 7aebe79
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/demos/ar-three.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ export async function render(
deviceContribution: DeviceContribution,
$canvas: HTMLCanvasElement,
) {
// create swap chain and get device
const swapChain = await deviceContribution.createSwapChain($canvas);

const device = swapChain.getDevice();
const gl = device['gl'];
const gl = $canvas.getContext('webgl', { xrCompatible: true })!;

const activateXR = async () => {
const scene = new THREE.Scene();
Expand Down

0 comments on commit 7aebe79

Please sign in to comment.