using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005C2 RID: 1474
	[Token(Token = "0x20005C2")]
	[Serializable]
	public class VignetteModel : PostProcessingModel
	{
		// Token: 0x17000389 RID: 905
		// (get) Token: 0x060030A6 RID: 12454 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x060030A7 RID: 12455 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000389")]
		public VignetteModel.Settings settings
		{
			[Token(Token = "0x60030A6")]
			[Address(RVA = "0x4B1C60", Offset = "0x4B0C60", VA = "0x1804B1C60")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x60030A7")]
			[Address(RVA = "0x4B1C90", Offset = "0x4B0C90", VA = "0x1804B1C90")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x060030A8 RID: 12456 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030A8")]
		[Address(RVA = "0x4B1BC0", Offset = "0x4B0BC0", VA = "0x1804B1BC0", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060030A9 RID: 12457 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030A9")]
		[Address(RVA = "0x4B1C10", Offset = "0x4B0C10", VA = "0x1804B1C10")]
		public VignetteModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x040039A5 RID: 14757
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x40039A5")]
		[SerializeField]
		private VignetteModel.Settings m_Settings;

		// Token: 0x020005C3 RID: 1475
		[Token(Token = "0x20005C3")]
		public enum Mode
		{
			// Token: 0x040039A7 RID: 14759
			[Token(Token = "0x40039A7")]
			Classic,
			// Token: 0x040039A8 RID: 14760
			[Token(Token = "0x40039A8")]
			Masked
		}

		// Token: 0x020005C4 RID: 1476
		[Token(Token = "0x20005C4")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x1700038A RID: 906
			// (get) Token: 0x060030AA RID: 12458 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700038A")]
			public static VignetteModel.Settings defaultSettings
			{
				[Token(Token = "0x60030AA")]
				[Address(RVA = "0x6CA450", Offset = "0x6C9450", VA = "0x1806CA450")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x040039A9 RID: 14761
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x40039A9")]
			[Tooltip("Use the \"Classic\" mode for parametric controls. Use the \"Masked\" mode to use your own texture mask.")]
			public VignetteModel.Mode mode;

			// Token: 0x040039AA RID: 14762
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x40039AA")]
			[ColorUsage(false)]
			[Tooltip("Vignette color. Use the alpha channel for transparency.")]
			public Color color;

			// Token: 0x040039AB RID: 14763
			[FieldOffset(Offset = "0x14")]
			[Token(Token = "0x40039AB")]
			[Tooltip("Sets the vignette center point (screen center is [0.5,0.5]).")]
			public Vector2 center;

			// Token: 0x040039AC RID: 14764
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x40039AC")]
			[Range(0f, 1f)]
			[Tooltip("Amount of vignetting on screen.")]
			public float intensity;

			// Token: 0x040039AD RID: 14765
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x40039AD")]
			[Range(0.01f, 1f)]
			[Tooltip("Smoothness of the vignette borders.")]
			public float smoothness;

			// Token: 0x040039AE RID: 14766
			[FieldOffset(Offset = "0x24")]
			[Token(Token = "0x40039AE")]
			[Range(0f, 1f)]
			[Tooltip("Lower values will make a square-ish vignette.")]
			public float roundness;

			// Token: 0x040039AF RID: 14767
			[FieldOffset(Offset = "0x28")]
			[Token(Token = "0x40039AF")]
			[Tooltip("A black and white mask to use as a vignette.")]
			public Texture mask;

			// Token: 0x040039B0 RID: 14768
			[FieldOffset(Offset = "0x30")]
			[Token(Token = "0x40039B0")]
			[Range(0f, 1f)]
			[Tooltip("Mask opacity.")]
			public float opacity;

			// Token: 0x040039B1 RID: 14769
			[FieldOffset(Offset = "0x34")]
			[Token(Token = "0x40039B1")]
			[Tooltip("Should the vignette be perfectly round or be dependent on the current aspect ratio?")]
			public bool rounded;
		}
	}
}
