Skip to content

Commit

Permalink
ok this time it will work ok
Browse files Browse the repository at this point in the history
  • Loading branch information
bailey authored Mar 3, 2024
1 parent 45e01cf commit b3d9cd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';
import { VRButton } from 'three/addons/webxr/VRButton.js';

let camera, scene, renderer, controls;
let bowieModel, shieldModel, pusheenModel, froggyModel;
Expand Down Expand Up @@ -94,6 +95,8 @@
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.xr.enabled = true;
document.body.appendChild(renderer.domElement);

document.body.appendChild( VRButton.createButton( renderer ) );


// Lighting
Expand Down

0 comments on commit b3d9cd9

Please sign in to comment.