81 lines
2.6 KiB
C#
81 lines
2.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace UnityEngine.Rendering.PostProcessing
|
|
{
|
|
// Token: 0x02000012 RID: 18
|
|
[Token(Token = "0x2000011")]
|
|
[PostProcess(typeof(AutoExposureRenderer), "Unity/Auto Exposure", true)]
|
|
[Serializable]
|
|
public sealed class AutoExposure : PostProcessEffectSettings
|
|
{
|
|
// Token: 0x0600001B RID: 27 RVA: 0x000020A0 File Offset: 0x000002A0
|
|
[Token(Token = "0x600001B")]
|
|
[Address(RVA = "0x2066610", Offset = "0x2065410", VA = "0x182066610", Slot = "4")]
|
|
public override bool IsEnabledAndSupported(PostProcessRenderContext context)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x0600001C RID: 28 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600001C")]
|
|
[Address(RVA = "0x2066770", Offset = "0x2065570", VA = "0x182066770")]
|
|
public AutoExposure()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000029 RID: 41
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000024")]
|
|
[MinMax(1f, 99f)]
|
|
[DisplayName("Filtering (%)")]
|
|
[Tooltip("Filters the bright and dark parts of the histogram when computing the average luminance. This is to avoid very dark pixels and very bright pixels from contributing to the auto exposure. Unit is in percent.")]
|
|
public Vector2Parameter filtering;
|
|
|
|
// Token: 0x0400002A RID: 42
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000025")]
|
|
[Range(-9f, 9f)]
|
|
[DisplayName("Minimum (EV)")]
|
|
[Tooltip("Minimum average luminance to consider for auto exposure. Unit is EV.")]
|
|
public FloatParameter minLuminance;
|
|
|
|
// Token: 0x0400002B RID: 43
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000026")]
|
|
[Range(-9f, 9f)]
|
|
[DisplayName("Maximum (EV)")]
|
|
[Tooltip("Maximum average luminance to consider for auto exposure. Unit is EV.")]
|
|
public FloatParameter maxLuminance;
|
|
|
|
// Token: 0x0400002C RID: 44
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000027")]
|
|
[Min(0f)]
|
|
[DisplayName("Exposure Compensation")]
|
|
[Tooltip("Use this to scale the global exposure of the scene.")]
|
|
public FloatParameter keyValue;
|
|
|
|
// Token: 0x0400002D RID: 45
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000028")]
|
|
[DisplayName("Type")]
|
|
[Tooltip("Use \"Progressive\" if you want auto exposure to be animated. Use \"Fixed\" otherwise.")]
|
|
public EyeAdaptationParameter eyeAdaptation;
|
|
|
|
// Token: 0x0400002E RID: 46
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000029")]
|
|
[Min(0f)]
|
|
[Tooltip("Adaptation speed from a dark to a light environment.")]
|
|
public FloatParameter speedUp;
|
|
|
|
// Token: 0x0400002F RID: 47
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400002A")]
|
|
[Min(0f)]
|
|
[Tooltip("Adaptation speed from a light to a dark environment.")]
|
|
public FloatParameter speedDown;
|
|
}
|
|
}
|