using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200053D RID: 1341
	[Token(Token = "0x200053D")]
	[Serializable]
	public class BloomModel : PostProcessingModel
	{
		// Token: 0x1700033D RID: 829
		// (get) Token: 0x06002D8D RID: 11661 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x06002D8E RID: 11662 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700033D")]
		public BloomModel.Settings settings
		{
			[Token(Token = "0x6002D8D")]
			[Address(RVA = "0xDE2710", Offset = "0xDE1510", VA = "0x180DE2710")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x6002D8E")]
			[Address(RVA = "0xDE2730", Offset = "0xDE1530", VA = "0x180DE2730")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002D8F RID: 11663 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D8F")]
		[Address(RVA = "0xDE2680", Offset = "0xDE1480", VA = "0x180DE2680", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D90 RID: 11664 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D90")]
		[Address(RVA = "0xDE26C0", Offset = "0xDE14C0", VA = "0x180DE26C0")]
		public BloomModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003622 RID: 13858
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003622")]
		[SerializeField]
		private BloomModel.Settings m_Settings;

		// Token: 0x0200053E RID: 1342
		[Token(Token = "0x200053E")]
		[Serializable]
		public struct BloomSettings
		{
			// Token: 0x1700033E RID: 830
			// (get) Token: 0x06002D92 RID: 11666 RVA: 0x0006217C File Offset: 0x0006037C
			// (set) Token: 0x06002D91 RID: 11665 RVA: 0x00062160 File Offset: 0x00060360
			[Token(Token = "0x1700033E")]
			public float thresholdLinear
			{
				[Token(Token = "0x6002D92")]
				[Address(RVA = "0x5F8BD0", Offset = "0x5F79D0", VA = "0x1805F8BD0")]
				get
				{
					return Mathf.GammaToLinearSpace(this.threshold);
				}
				[Token(Token = "0x6002D91")]
				[Address(RVA = "0x5F8BE0", Offset = "0x5F79E0", VA = "0x1805F8BE0")]
				set
				{
					float num = Mathf.LinearToGammaSpace(value);
					this.threshold = num;
				}
			}

			// Token: 0x1700033F RID: 831
			// (get) Token: 0x06002D93 RID: 11667 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700033F")]
			public static BloomModel.BloomSettings defaultSettings
			{
				[Token(Token = "0x6002D93")]
				[Address(RVA = "0x5F8BA0", Offset = "0x5F79A0", VA = "0x1805F8BA0")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003623 RID: 13859
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003623")]
			[Min(0f)]
			[Tooltip("Strength of the bloom filter.")]
			public float intensity;

			// Token: 0x04003624 RID: 13860
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003624")]
			[Min(0f)]
			[Tooltip("Filters out pixels under this level of brightness.")]
			public float threshold;

			// Token: 0x04003625 RID: 13861
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003625")]
			[Range(0f, 1f)]
			[Tooltip("Makes transition between under/over-threshold gradual (0 = hard threshold, 1 = soft threshold).")]
			public float softKnee;

			// Token: 0x04003626 RID: 13862
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003626")]
			[Range(1f, 7f)]
			[Tooltip("Changes extent of veiling effects in a screen resolution-independent fashion.")]
			public float radius;

			// Token: 0x04003627 RID: 13863
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003627")]
			[Tooltip("Reduces flashing noise with an additional filter.")]
			public bool antiFlicker;
		}

		// Token: 0x0200053F RID: 1343
		[Token(Token = "0x200053F")]
		[Serializable]
		public struct LensDirtSettings
		{
			// Token: 0x17000340 RID: 832
			// (get) Token: 0x06002D94 RID: 11668 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000340")]
			public static BloomModel.LensDirtSettings defaultSettings
			{
				[Token(Token = "0x6002D94")]
				[Address(RVA = "0x5FC900", Offset = "0x5FB700", VA = "0x1805FC900")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003628 RID: 13864
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003628")]
			[Tooltip("Dirtiness texture to add smudges or dust to the lens.")]
			public Texture texture;

			// Token: 0x04003629 RID: 13865
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003629")]
			[Min(0f)]
			[Tooltip("Amount of lens dirtiness.")]
			public float intensity;
		}

		// Token: 0x02000540 RID: 1344
		[Token(Token = "0x2000540")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x17000341 RID: 833
			// (get) Token: 0x06002D95 RID: 11669 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000341")]
			public static BloomModel.Settings defaultSettings
			{
				[Token(Token = "0x6002D95")]
				[Address(RVA = "0x5FD8D0", Offset = "0x5FC6D0", VA = "0x1805FD8D0")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x0400362A RID: 13866
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x400362A")]
			public BloomModel.BloomSettings bloom;

			// Token: 0x0400362B RID: 13867
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x400362B")]
			public BloomModel.LensDirtSettings lensDirt;
		}
	}
}
