some other annoying vr bugfixes: do not overlay hotbar with enter vr button

This commit is contained in:
Vitaly Turovsky 2024-06-23 06:39:27 +03:00
commit 978adea49d
2 changed files with 3 additions and 1 deletions

View file

@ -162,7 +162,8 @@ export class WorldRendererThree extends WorldRendererCommon {
render () {
tweenJs.update()
this.renderer.render(this.scene, this.camera)
const cam = this.camera instanceof THREE.Group ? this.camera.children.find(child => child instanceof THREE.PerspectiveCamera) as THREE.PerspectiveCamera : this.camera
this.renderer.render(this.scene, cam)
}
renderSign (position: Vec3, rotation: number, isWall: boolean, isHanging: boolean, blockEntity) {

View file

@ -68,6 +68,7 @@ body {
background: rgba(0, 0, 0, 0.3) !important;
opacity: 0.7 !important;
position: fixed !important;
bottom: 60px;
}
.dirt-bg {