mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-04 01:49:07 +00:00
Portal rendering works
This commit is contained in:
@@ -11,8 +11,6 @@ public class PortalManager : MonoBehaviour
|
||||
|
||||
[Header("Points")]
|
||||
[SerializeField] Transform m_PlayerPoint;
|
||||
[SerializeField] Transform m_Pos;
|
||||
[SerializeField] Transform m_Rot;
|
||||
|
||||
PortalManager m_OtherManager;
|
||||
PortalCamera m_PortalCamera;
|
||||
@@ -36,7 +34,7 @@ public class PortalManager : MonoBehaviour
|
||||
m_PortalCamera = cam.GetComponentInChildren<PortalCamera>();
|
||||
|
||||
// Initialises the camera so it renders to the portal and not the screen
|
||||
m_PortalCamera.InitCamera(m_PortalRenderer, this);
|
||||
m_PortalCamera.InitCamera(m_PortalRenderer, this, transform.parent.localEulerAngles * 2.0f);
|
||||
}
|
||||
|
||||
// Updates is called every frame
|
||||
|
||||
Reference in New Issue
Block a user