r2mods/ilspy_dump/ror2_csproj/SobelRain.cs

40 lines
886 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
[Serializable]
[PostProcess(typeof(SobelRainRenderer), PostProcessEvent.BeforeTransparent, "PostProcess/SobelRain", true)]
public sealed class SobelRain : PostProcessEffectSettings
{
[Range(0f, 100f)]
[Tooltip("The intensity of the rain.")]
public FloatParameter rainIntensity = new FloatParameter
{
value = 0.5f
};
[Range(0f, 10f)]
[Tooltip("The falloff of the outline. Higher values means it relies less on the sobel.")]
public FloatParameter outlineScale = new FloatParameter
{
value = 1f
};
[Range(0f, 1f)]
[Tooltip("The density of rain.")]
public FloatParameter rainDensity = new FloatParameter
{
value = 1f
};
public TextureParameter rainTexture = new TextureParameter
{
value = null
};
public ColorParameter rainColor = new ColorParameter
{
value = Color.white
};
}