adjust cameraheight + bugfix

This commit is contained in:
Leon van Kammen 2023-05-23 16:46:27 +02:00
parent 0832986696
commit 6247ef4c8e
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@
$('a-scene').addEventListener('loaded', () => {
setupConsole( $('textarea') )
setupUrlBar( $('input#uri') )
setupUrlBar( $('input#uri'), window.AFRAME.XRF )
// add screenshot component with camera to capture proper equirects
$('a-scene').setAttribute("screenshot",{camera: "[camera]",width: 4096*2, height:2048*2})

View File

@ -85,6 +85,7 @@
let cameraRig = new THREE.Group()
cameraRig.position.set( 0, 0, 0 );
camera.position.set(0,1.6,0)
cameraRig.add(camera)
scene.add(cameraRig)