r2mods/ilspy_dump/ror2_csproj/SobelRainRenderer.cs

17 lines
822 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Rendering.PostProcessing;
public sealed class SobelRainRenderer : PostProcessEffectRenderer<SobelRain>
{
public override void Render(PostProcessRenderContext context)
{
PropertySheet propertySheet = context.propertySheets.Get(LegacyShaderAPI.Find("Hidden/PostProcess/SobelRain"));
propertySheet.properties.SetFloat("_RainIntensity", base.settings.rainIntensity);
propertySheet.properties.SetFloat("_OutlineScale", base.settings.outlineScale);
propertySheet.properties.SetFloat("_RainDensity", base.settings.rainDensity);
propertySheet.properties.SetTexture("_RainTexture", base.settings.rainTexture);
propertySheet.properties.SetColor("_RainColor", base.settings.rainColor);
context.command.BlitFullscreenTriangle(context.source, context.destination, propertySheet, 0);
}
}