render stencil portals (transparent)

This commit is contained in:
2023-03-08 15:39:58 +01:00
parent 02bb0727b7
commit 4be8380a40
14 changed files with 475 additions and 60 deletions

View File

@@ -26,9 +26,10 @@ namespace EscapeRoomEngine.Portal.Runtime
/// </summary>
public float minNearClipPlane = 0.0001f;
/// <summary>
/// The mesh where the portal will be drawn.
/// The meshes where the portal will draw its stencil and depth.
/// </summary>
[BoxGroup("Internal")] public MeshRenderer screen;
[BoxGroup("Internal")] [SerializeField]
private MeshRenderer screen;
/// <summary>
/// The transform marking the edge of the portal plane.
/// </summary>