r2mods/ilspy_dump/ror2_csproj/RoR2/RainPostProcess.cs

26 lines
417 B
C#

using UnityEngine;
namespace RoR2;
[ExecuteInEditMode]
public class RainPostProcess : MonoBehaviour
{
public Material mat;
private RenderTexture renderTex;
private void Start()
{
GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
}
private void Update()
{
}
private void OnRenderImage(RenderTexture source, RenderTexture destination)
{
Graphics.Blit(source, destination, mat);
}
}