Files
NobetaSource/Cpp2IL/Assembly-CSharp/UnityEngine/PostProcessing/AmbientOcclusionModel.cs
2023-09-06 22:09:22 +02:00

135 lines
4.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace UnityEngine.PostProcessing
{
// Token: 0x0200053B RID: 1339
[Token(Token = "0x200053B")]
[Serializable]
public class AmbientOcclusionModel : PostProcessingModel
{
// Token: 0x17000331 RID: 817
// (get) Token: 0x06002DB1 RID: 11697 RVA: 0x000020D3 File Offset: 0x000002D3
// (set) Token: 0x06002DB2 RID: 11698 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x17000331")]
public AmbientOcclusionModel.Settings settings
{
[Token(Token = "0x6002DB1")]
[Address(RVA = "0x4667C0", Offset = "0x464FC0", VA = "0x1804667C0")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
[Token(Token = "0x6002DB2")]
[Address(RVA = "0x9E3C90", Offset = "0x9E2490", VA = "0x1809E3C90")]
set
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x06002DB3 RID: 11699 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DB3")]
[Address(RVA = "0xB5AE60", Offset = "0xB59660", VA = "0x180B5AE60", Slot = "4")]
public override void Reset()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002DB4 RID: 11700 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DB4")]
[Address(RVA = "0xB5AE90", Offset = "0xB59690", VA = "0x180B5AE90")]
public AmbientOcclusionModel()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0400363C RID: 13884
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400363C")]
[SerializeField]
private AmbientOcclusionModel.Settings m_Settings;
// Token: 0x0200053C RID: 1340
[Token(Token = "0x200053C")]
public enum SampleCount
{
// Token: 0x0400363E RID: 13886
[Token(Token = "0x400363E")]
Lowest = 3,
// Token: 0x0400363F RID: 13887
[Token(Token = "0x400363F")]
Low = 6,
// Token: 0x04003640 RID: 13888
[Token(Token = "0x4003640")]
Medium = 10,
// Token: 0x04003641 RID: 13889
[Token(Token = "0x4003641")]
High = 16
}
// Token: 0x0200053D RID: 1341
[Token(Token = "0x200053D")]
[Serializable]
public struct Settings
{
// Token: 0x17000332 RID: 818
// (get) Token: 0x06002DB5 RID: 11701 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x17000332")]
public static AmbientOcclusionModel.Settings defaultSettings
{
[Token(Token = "0x6002DB5")]
[Address(RVA = "0x670550", Offset = "0x66ED50", VA = "0x180670550")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x04003642 RID: 13890
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4003642")]
[Range(0f, 4f)]
[Tooltip("Degree of darkness produced by the effect.")]
public float intensity;
// Token: 0x04003643 RID: 13891
[FieldOffset(Offset = "0x4")]
[Token(Token = "0x4003643")]
[Min(0.0001f)]
[Tooltip("Radius of sample points, which affects extent of darkened areas.")]
public float radius;
// Token: 0x04003644 RID: 13892
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x4003644")]
[Tooltip("Number of sample points, which affects quality and performance.")]
public AmbientOcclusionModel.SampleCount sampleCount;
// Token: 0x04003645 RID: 13893
[FieldOffset(Offset = "0xC")]
[Token(Token = "0x4003645")]
[Tooltip("Halves the resolution of the effect to increase performance at the cost of visual quality.")]
public bool downsampling;
// Token: 0x04003646 RID: 13894
[FieldOffset(Offset = "0xD")]
[Token(Token = "0x4003646")]
[Tooltip("Forces compatibility with Forward rendered objects when working with the Deferred rendering path.")]
public bool forceForwardCompatibility;
// Token: 0x04003647 RID: 13895
[FieldOffset(Offset = "0xE")]
[Token(Token = "0x4003647")]
[Tooltip("Enables the ambient-only mode in that the effect only affects ambient lighting. This mode is only available with the Deferred rendering path and HDR rendering.")]
public bool ambientOnly;
// Token: 0x04003648 RID: 13896
[FieldOffset(Offset = "0xF")]
[Token(Token = "0x4003648")]
[Tooltip("Toggles the use of a higher precision depth texture with the forward rendering path (may impact performances). Has no effect with the deferred rendering path.")]
public bool highPrecision;
}
}
}