using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200056A RID: 1386
	[Token(Token = "0x200056A")]
	[Serializable]
	public class VignetteModel : PostProcessingModel
	{
		// Token: 0x17000364 RID: 868
		// (get) Token: 0x06002DDD RID: 11741 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x06002DDE RID: 11742 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000364")]
		public VignetteModel.Settings settings
		{
			[Token(Token = "0x6002DDD")]
			[Address(RVA = "0x937C70", Offset = "0x936A70", VA = "0x180937C70")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x6002DDE")]
			[Address(RVA = "0x937CA0", Offset = "0x936AA0", VA = "0x180937CA0")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002DDF RID: 11743 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002DDF")]
		[Address(RVA = "0x937BD0", Offset = "0x9369D0", VA = "0x180937BD0", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002DE0 RID: 11744 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002DE0")]
		[Address(RVA = "0x937C20", Offset = "0x936A20", VA = "0x180937C20")]
		public VignetteModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x040036BB RID: 14011
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x40036BB")]
		[SerializeField]
		private VignetteModel.Settings m_Settings;

		// Token: 0x0200056B RID: 1387
		[Token(Token = "0x200056B")]
		public enum Mode
		{
			// Token: 0x040036BD RID: 14013
			[Token(Token = "0x40036BD")]
			Classic,
			// Token: 0x040036BE RID: 14014
			[Token(Token = "0x40036BE")]
			Masked
		}

		// Token: 0x0200056C RID: 1388
		[Token(Token = "0x200056C")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x17000365 RID: 869
			// (get) Token: 0x06002DE1 RID: 11745 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000365")]
			public static VignetteModel.Settings defaultSettings
			{
				[Token(Token = "0x6002DE1")]
				[Address(RVA = "0x132ED90", Offset = "0x132DB90", VA = "0x18132ED90")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

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

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

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

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

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

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

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

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

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