-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(render): disable outline shader draw
The shader does not work in vr. Disabled for now.
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using HarmonyLib; | ||
using UnityEngine; | ||
|
||
namespace TechtonicaVR.VRCamera.Patch; | ||
|
||
[HarmonyPatch] | ||
public static class OutlineShaderPatch | ||
{ | ||
[HarmonyPatch(typeof(OutlinePostProcess), nameof(OutlinePostProcess.SetTargetOutlineable), [typeof(bool)])] | ||
[HarmonyPrefix] | ||
public static bool StartPostfix() | ||
{ | ||
return false; | ||
} | ||
|
||
[HarmonyPatch(typeof(OutlinePostProcess), nameof(OutlinePostProcess.SetTargetOutlineable), [typeof(IStreamedMachineInstance), typeof(bool), typeof(bool)])] | ||
[HarmonyPrefix] | ||
public static bool StartPostfixOverload() | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using UnityEngine; | ||
|
||
namespace TechtonicaVR.Patches.Universal; | ||
|
||
public class DisableComponentPatch<T> : GameComponentPatch<T> where T : MonoBehaviour | ||
{ | ||
private bool applied = false; | ||
|
||
protected override bool Apply(T component) | ||
{ | ||
component.enabled = false; | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace TechtonicaVR.Patches.Universal; | ||
|