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

124 lines
4.0 KiB
C#

using System;
using Cpp2IlInjected;
namespace UnityEngine.PostProcessing
{
// Token: 0x0200055C RID: 1372
[Token(Token = "0x200055C")]
[Serializable]
public class DepthOfFieldModel : PostProcessingModel
{
// Token: 0x1700034E RID: 846
// (get) Token: 0x06002DE7 RID: 11751 RVA: 0x000020D3 File Offset: 0x000002D3
// (set) Token: 0x06002DE8 RID: 11752 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x1700034E")]
public DepthOfFieldModel.Settings settings
{
[Token(Token = "0x6002DE7")]
[Address(RVA = "0x1495170", Offset = "0x1493970", VA = "0x181495170")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
[Token(Token = "0x6002DE8")]
[Address(RVA = "0x1495190", Offset = "0x1493990", VA = "0x181495190")]
set
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x06002DE9 RID: 11753 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DE9")]
[Address(RVA = "0x1495100", Offset = "0x1493900", VA = "0x181495100", Slot = "4")]
public override void Reset()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002DEA RID: 11754 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002DEA")]
[Address(RVA = "0x1495130", Offset = "0x1493930", VA = "0x181495130")]
public DepthOfFieldModel()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x040036BD RID: 14013
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40036BD")]
[SerializeField]
private DepthOfFieldModel.Settings m_Settings;
// Token: 0x0200055D RID: 1373
[Token(Token = "0x200055D")]
public enum KernelSize
{
// Token: 0x040036BF RID: 14015
[Token(Token = "0x40036BF")]
Small,
// Token: 0x040036C0 RID: 14016
[Token(Token = "0x40036C0")]
Medium,
// Token: 0x040036C1 RID: 14017
[Token(Token = "0x40036C1")]
Large,
// Token: 0x040036C2 RID: 14018
[Token(Token = "0x40036C2")]
VeryLarge
}
// Token: 0x0200055E RID: 1374
[Token(Token = "0x200055E")]
[Serializable]
public struct Settings
{
// Token: 0x1700034F RID: 847
// (get) Token: 0x06002DEB RID: 11755 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x1700034F")]
public static DepthOfFieldModel.Settings defaultSettings
{
[Token(Token = "0x6002DEB")]
[Address(RVA = "0x670520", Offset = "0x66ED20", VA = "0x180670520")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x040036C3 RID: 14019
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40036C3")]
[Min(0.1f)]
[Tooltip("Distance to the point of focus.")]
public float focusDistance;
// Token: 0x040036C4 RID: 14020
[FieldOffset(Offset = "0x4")]
[Token(Token = "0x40036C4")]
[Tooltip("Ratio of aperture (known as f-stop or f-number). The smaller the value is, the shallower the depth of field is.")]
[Range(0.05f, 32f)]
public float aperture;
// Token: 0x040036C5 RID: 14021
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x40036C5")]
[Range(1f, 300f)]
[Tooltip("Distance between the lens and the film. The larger the value is, the shallower the depth of field is.")]
public float focalLength;
// Token: 0x040036C6 RID: 14022
[FieldOffset(Offset = "0xC")]
[Token(Token = "0x40036C6")]
[Tooltip("Calculate the focal length automatically from the field-of-view value set on the camera. Using this setting isn't recommended.")]
public bool useCameraFov;
// Token: 0x040036C7 RID: 14023
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40036C7")]
[Tooltip("Convolution kernel size of the bokeh filter, which determines the maximum radius of bokeh. It also affects the performance (the larger the kernel is, the longer the GPU time is required).")]
public DepthOfFieldModel.KernelSize kernelSize;
}
}
}