diff options
Diffstat (limited to 'Client/Assembly-CSharp/ShadowCamera.cs')
-rw-r--r-- | Client/Assembly-CSharp/ShadowCamera.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/ShadowCamera.cs b/Client/Assembly-CSharp/ShadowCamera.cs new file mode 100644 index 0000000..468d259 --- /dev/null +++ b/Client/Assembly-CSharp/ShadowCamera.cs @@ -0,0 +1,17 @@ +using System; +using UnityEngine; + +public class ShadowCamera : MonoBehaviour +{ + public Shader Shadozer; + + public void OnEnable() + { + base.GetComponent<Camera>().SetReplacementShader(this.Shadozer, "RenderType"); + } + + public void OnDisable() + { + base.GetComponent<Camera>().ResetReplacementShader(); + } +} |