adjust cameraheight + bugfix
This commit is contained in:
parent
0832986696
commit
6247ef4c8e
2 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
$('a-scene').addEventListener('loaded', () => {
|
$('a-scene').addEventListener('loaded', () => {
|
||||||
setupConsole( $('textarea') )
|
setupConsole( $('textarea') )
|
||||||
setupUrlBar( $('input#uri') )
|
setupUrlBar( $('input#uri'), window.AFRAME.XRF )
|
||||||
|
|
||||||
// add screenshot component with camera to capture proper equirects
|
// add screenshot component with camera to capture proper equirects
|
||||||
$('a-scene').setAttribute("screenshot",{camera: "[camera]",width: 4096*2, height:2048*2})
|
$('a-scene').setAttribute("screenshot",{camera: "[camera]",width: 4096*2, height:2048*2})
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
|
|
||||||
let cameraRig = new THREE.Group()
|
let cameraRig = new THREE.Group()
|
||||||
cameraRig.position.set( 0, 0, 0 );
|
cameraRig.position.set( 0, 0, 0 );
|
||||||
|
camera.position.set(0,1.6,0)
|
||||||
cameraRig.add(camera)
|
cameraRig.add(camera)
|
||||||
scene.add(cameraRig)
|
scene.add(cameraRig)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue