Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Added screen mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
LivingFray committed Dec 26, 2022
1 parent 6feed4b commit 2da02e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HellsingerVR/HellsingerVR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions SteamVR_IL2CPP/Scripts/SteamVR_Render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2da02e8

Please sign in to comment.