VR portal rendering

This commit is contained in:
2022-10-09 16:53:57 +02:00
parent 29b604d769
commit 464a7e6767
7 changed files with 420 additions and 173 deletions

View File

@@ -0,0 +1,13 @@
using UnityEngine;
namespace Escape_Room_Engine.Portal
{
public class PlayerCamera : MonoBehaviour
{
public Camera camera;
[SerializeField] private Transform leftEye, rightEye;
public Transform getEyeTransform(Camera.StereoscopicEye eye) =>
eye == Camera.StereoscopicEye.Left ? leftEye : rightEye;
}
}