Files
27Aug2021-Cpp2IL-Dump/Unity.Postprocessing.Runtime/UnityEngine/Rendering/PostProcessing/Grain.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

56 lines
1.6 KiB
C#

using System;
using Cpp2IlInjected;
namespace UnityEngine.Rendering.PostProcessing
{
// Token: 0x02000029 RID: 41
[Token(Token = "0x2000024")]
[PostProcess(typeof(GrainRenderer), "Unity/Grain", true)]
[Serializable]
public sealed class Grain : PostProcessEffectSettings
{
// Token: 0x0600004D RID: 77 RVA: 0x000021D8 File Offset: 0x000003D8
[Token(Token = "0x600004D")]
[Address(RVA = "0x79F8D0", Offset = "0x79E8D0", VA = "0x18079F8D0", Slot = "4")]
public override bool IsEnabledAndSupported(PostProcessRenderContext context)
{
return default(bool);
}
// Token: 0x0600004E RID: 78 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600004E")]
[Address(RVA = "0x7A84D0", Offset = "0x7A74D0", VA = "0x1807A84D0")]
public Grain()
{
}
// Token: 0x040000AB RID: 171
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400008B")]
[Tooltip("Enable the use of colored grain.")]
public BoolParameter colored;
// Token: 0x040000AC RID: 172
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400008C")]
[Range(0f, 1f)]
[Tooltip("Grain strength. Higher values mean more visible grain.")]
public FloatParameter intensity;
// Token: 0x040000AD RID: 173
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400008D")]
[Range(0.3f, 3f)]
[Tooltip("Grain particle size.")]
public FloatParameter size;
// Token: 0x040000AE RID: 174
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400008E")]
[Range(0f, 1f)]
[DisplayName("Luminance Contribution")]
[Tooltip("Controls the noise response curve based on scene luminance. Lower values mean less noise in dark areas.")]
public FloatParameter lumContrib;
}
}