r2mods/ilspy_dump/ror2_csproj/SceneTintRenderer.cs

13 lines
502 B
C#
Raw Permalink Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Rendering.PostProcessing;
public sealed class SceneTintRenderer : PostProcessEffectRenderer<SceneTint>
{
public override void Render(PostProcessRenderContext context)
{
PropertySheet propertySheet = context.propertySheets.Get(LegacyShaderAPI.Find("Hidden/PostProcess/SceneTint"));
propertySheet.properties.SetFloat("_TintIntensity", base.settings.tintIntensity);
context.command.BlitFullscreenTriangle(context.source, context.destination, propertySheet, 0);
}
}