r2mods/ilspy_dump/ror2_csproj/RoR2/RainPostProcess.cs

26 lines
417 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
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);
}
}