From 2da02e8a37c8d7dcf46487507182befb35748ae6 Mon Sep 17 00:00:00 2001 From: LivingFray Date: Mon, 26 Dec 2022 01:34:32 +0000 Subject: [PATCH] Added screen mirroring --- HellsingerVR/HellsingerVR.cs | 2 +- SteamVR_IL2CPP/Scripts/SteamVR_Render.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HellsingerVR/HellsingerVR.cs b/HellsingerVR/HellsingerVR.cs index 13591d6..9d9820c 100644 --- a/HellsingerVR/HellsingerVR.cs +++ b/HellsingerVR/HellsingerVR.cs @@ -14,7 +14,7 @@ namespace HellsingerVR { - [BepInPlugin("LivingFray.HellsingerVR", "HellsingerVR", "0.1.0")] + [BepInPlugin("LivingFray.HellsingerVR", "HellsingerVR", "0.2.0")] public class HellsingerVR : BasePlugin { static GameObject vrRig; diff --git a/SteamVR_IL2CPP/Scripts/SteamVR_Render.cs b/SteamVR_IL2CPP/Scripts/SteamVR_Render.cs index 46a92c9..a0dc41b 100644 --- a/SteamVR_IL2CPP/Scripts/SteamVR_Render.cs +++ b/SteamVR_IL2CPP/Scripts/SteamVR_Render.cs @@ -247,6 +247,11 @@ void RenderEye(SteamVR vr, EVREye eye) RenderTexture.ReleaseTemporary(temp); + if (eye == EVREye.Eye_Right) + { + Graphics.Blit(camera.targetTexture, null as RenderTexture); + } + camera.targetTexture = tex; } eyePostRenderCallback?.Invoke(eye);