make desert portals stencil portals

This commit is contained in:
2023-03-15 19:04:55 +01:00
parent cd8c4cd345
commit 6cf8d72900
33 changed files with 1014 additions and 1254 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -92,7 +92,7 @@ namespace EscapeRoomEngine.Portal.Runtime
{
// place camera
Matrix4x4 cameraTransform;
if (monoOrEye == Camera.MonoOrStereoscopicEye.Mono)
if (monoOrEye == Camera.MonoOrStereoscopicEye.Mono || playerCamera != Player.Instance.camera)
{
cameraTransform = portalTransform.localToWorldMatrix * HalfRotation *
linkedPortal.portalTransform.worldToLocalMatrix *
@@ -100,7 +100,6 @@ namespace EscapeRoomEngine.Portal.Runtime
}
else
{
// stereoRenderCounter = (stereoRenderCounter + 1) % 2;
var eye = monoOrEye == Camera.MonoOrStereoscopicEye.Left
? Camera.StereoscopicEye.Left
: Camera.StereoscopicEye.Right;