using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005A0 RID: 1440
	[Token(Token = "0x20005A0")]
	[Serializable]
	public class ColorGradingModel : PostProcessingModel
	{
		// Token: 0x1700036E RID: 878
		// (get) Token: 0x0600306D RID: 12397 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x0600306E RID: 12398 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700036E")]
		public ColorGradingModel.Settings settings
		{
			[Token(Token = "0x600306D")]
			[Address(RVA = "0x12ED1E0", Offset = "0x12EC1E0", VA = "0x1812ED1E0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x600306E")]
			[Address(RVA = "0x12ED260", Offset = "0x12EC260", VA = "0x1812ED260")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x1700036F RID: 879
		// (get) Token: 0x0600306F RID: 12399 RVA: 0x0006947C File Offset: 0x0006767C
		// (set) Token: 0x06003070 RID: 12400 RVA: 0x00069490 File Offset: 0x00067690
		[Token(Token = "0x1700036F")]
		public bool isDirty
		{
			[Token(Token = "0x600306F")]
			[Address(RVA = "0xA78020", Offset = "0xA77020", VA = "0x180A78020")]
			get;
			[Token(Token = "0x6003070")]
			[Address(RVA = "0xA78140", Offset = "0xA77140", VA = "0x180A78140")]
			internal set;
		}

		// Token: 0x17000370 RID: 880
		// (get) Token: 0x06003071 RID: 12401 RVA: 0x000694A4 File Offset: 0x000676A4
		// (set) Token: 0x06003072 RID: 12402 RVA: 0x000694B8 File Offset: 0x000676B8
		[Token(Token = "0x17000370")]
		public RenderTexture bakedLut
		{
			[Token(Token = "0x6003071")]
			[Address(RVA = "0x68ADE0", Offset = "0x689DE0", VA = "0x18068ADE0")]
			[CompilerGenerated]
			get
			{
				return this.<bakedLut>k__BackingField;
			}
			[Token(Token = "0x6003072")]
			[Address(RVA = "0x68AE60", Offset = "0x689E60", VA = "0x18068AE60")]
			[CompilerGenerated]
			internal set
			{
				/*
An exception occurred when decompiling this method (06003072)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.ColorGradingModel::set_bakedLut(UnityEngine.RenderTexture)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stfld:RenderTexture(ColorGradingModel::<bakedLut>k__BackingField, ldloc:ColorGradingModel(this), ldloc:RenderTexture(value)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
			}
		}

		// Token: 0x06003073 RID: 12403 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003073")]
		[Address(RVA = "0x12ED090", Offset = "0x12EC090", VA = "0x1812ED090", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003074 RID: 12404 RVA: 0x000694CC File Offset: 0x000676CC
		[Token(Token = "0x6003074")]
		[Address(RVA = "0x12ED080", Offset = "0x12EC080", VA = "0x1812ED080", Slot = "5")]
		public override void OnValidate()
		{
			this.<isDirty>k__BackingField = true;
		}

		// Token: 0x06003075 RID: 12405 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003075")]
		[Address(RVA = "0x12ED140", Offset = "0x12EC140", VA = "0x1812ED140")]
		public ColorGradingModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0400392F RID: 14639
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x400392F")]
		[SerializeField]
		private ColorGradingModel.Settings m_Settings;

		// Token: 0x020005A1 RID: 1441
		[Token(Token = "0x20005A1")]
		public enum Tonemapper
		{
			// Token: 0x04003933 RID: 14643
			[Token(Token = "0x4003933")]
			None,
			// Token: 0x04003934 RID: 14644
			[Token(Token = "0x4003934")]
			ACES,
			// Token: 0x04003935 RID: 14645
			[Token(Token = "0x4003935")]
			Neutral
		}

		// Token: 0x020005A2 RID: 1442
		[Token(Token = "0x20005A2")]
		[Serializable]
		public struct TonemappingSettings
		{
			// Token: 0x17000371 RID: 881
			// (get) Token: 0x06003076 RID: 12406 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000371")]
			public static ColorGradingModel.TonemappingSettings defaultSettings
			{
				[Token(Token = "0x6003076")]
				[Address(RVA = "0x19BDF40", Offset = "0x19BCF40", VA = "0x1819BDF40")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003936 RID: 14646
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003936")]
			[Tooltip("Tonemapping algorithm to use at the end of the color grading process. Use \"Neutral\" if you need a customizable tonemapper or \"Filmic\" to give a standard filmic look to your scenes.")]
			public ColorGradingModel.Tonemapper tonemapper;

			// Token: 0x04003937 RID: 14647
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003937")]
			[Range(-0.1f, 0.1f)]
			public float neutralBlackIn;

			// Token: 0x04003938 RID: 14648
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003938")]
			[Range(1f, 20f)]
			public float neutralWhiteIn;

			// Token: 0x04003939 RID: 14649
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003939")]
			[Range(-0.09f, 0.1f)]
			public float neutralBlackOut;

			// Token: 0x0400393A RID: 14650
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x400393A")]
			[Range(1f, 19f)]
			public float neutralWhiteOut;

			// Token: 0x0400393B RID: 14651
			[FieldOffset(Offset = "0x14")]
			[Token(Token = "0x400393B")]
			[Range(0.1f, 20f)]
			public float neutralWhiteLevel;

			// Token: 0x0400393C RID: 14652
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x400393C")]
			[Range(1f, 10f)]
			public float neutralWhiteClip;
		}

		// Token: 0x020005A3 RID: 1443
		[Token(Token = "0x20005A3")]
		[Serializable]
		public struct BasicSettings
		{
			// Token: 0x17000372 RID: 882
			// (get) Token: 0x06003077 RID: 12407 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000372")]
			public static ColorGradingModel.BasicSettings defaultSettings
			{
				[Token(Token = "0x6003077")]
				[Address(RVA = "0x19BBC00", Offset = "0x19BAC00", VA = "0x1819BBC00")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x0400393D RID: 14653
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x400393D")]
			[Tooltip("Adjusts the overall exposure of the scene in EV units. This is applied after HDR effect and right before tonemapping so it won't affect previous effects in the chain.")]
			public float postExposure;

			// Token: 0x0400393E RID: 14654
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x400393E")]
			[Range(-100f, 100f)]
			[Tooltip("Sets the white balance to a custom color temperature.")]
			public float temperature;

			// Token: 0x0400393F RID: 14655
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x400393F")]
			[Range(-100f, 100f)]
			[Tooltip("Sets the white balance to compensate for a green or magenta tint.")]
			public float tint;

			// Token: 0x04003940 RID: 14656
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003940")]
			[Range(-180f, 180f)]
			[Tooltip("Shift the hue of all colors.")]
			public float hueShift;

			// Token: 0x04003941 RID: 14657
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003941")]
			[Attribute(Name = "RangeAttribute", RVA = "0x262AD0", Offset = "0x261ED0")]
			[Tooltip("Pushes the intensity of all colors.")]
			public float saturation;

			// Token: 0x04003942 RID: 14658
			[FieldOffset(Offset = "0x14")]
			[Token(Token = "0x4003942")]
			[Attribute(Name = "RangeAttribute", RVA = "0x262B90", Offset = "0x261F90")]
			[Tooltip("Expands or shrinks the overall range of tonal values.")]
			public float contrast;
		}

		// Token: 0x020005A4 RID: 1444
		[Token(Token = "0x20005A4")]
		[Serializable]
		public struct ChannelMixerSettings
		{
			// Token: 0x17000373 RID: 883
			// (get) Token: 0x06003078 RID: 12408 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000373")]
			public static ColorGradingModel.ChannelMixerSettings defaultSettings
			{
				[Token(Token = "0x6003078")]
				[Address(RVA = "0x19BC370", Offset = "0x19BB370", VA = "0x1819BC370")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003943 RID: 14659
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003943")]
			public Vector3 red;

			// Token: 0x04003944 RID: 14660
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003944")]
			public Vector3 green;

			// Token: 0x04003945 RID: 14661
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x4003945")]
			public Vector3 blue;

			// Token: 0x04003946 RID: 14662
			[FieldOffset(Offset = "0x24")]
			[Token(Token = "0x4003946")]
			[HideInInspector]
			public int currentEditingChannel;
		}

		// Token: 0x020005A5 RID: 1445
		[Token(Token = "0x20005A5")]
		[Serializable]
		public struct LogWheelsSettings
		{
			// Token: 0x17000374 RID: 884
			// (get) Token: 0x06003079 RID: 12409 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000374")]
			public static ColorGradingModel.LogWheelsSettings defaultSettings
			{
				[Token(Token = "0x6003079")]
				[Address(RVA = "0x19BD760", Offset = "0x19BC760", VA = "0x1819BD760")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003947 RID: 14663
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003947")]
			[Trackball("GetSlopeValue")]
			public Color slope;

			// Token: 0x04003948 RID: 14664
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003948")]
			[Trackball("GetPowerValue")]
			public Color power;

			// Token: 0x04003949 RID: 14665
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x4003949")]
			[Trackball("GetOffsetValue")]
			public Color offset;
		}

		// Token: 0x020005A6 RID: 1446
		[Token(Token = "0x20005A6")]
		[Serializable]
		public struct LinearWheelsSettings
		{
			// Token: 0x17000375 RID: 885
			// (get) Token: 0x0600307A RID: 12410 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000375")]
			public static ColorGradingModel.LinearWheelsSettings defaultSettings
			{
				[Token(Token = "0x600307A")]
				[Address(RVA = "0x19BD760", Offset = "0x19BC760", VA = "0x1819BD760")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x0400394A RID: 14666
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x400394A")]
			[Trackball("GetLiftValue")]
			public Color lift;

			// Token: 0x0400394B RID: 14667
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x400394B")]
			[Trackball("GetGammaValue")]
			public Color gamma;

			// Token: 0x0400394C RID: 14668
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x400394C")]
			[Trackball("GetGainValue")]
			public Color gain;
		}

		// Token: 0x020005A7 RID: 1447
		[Token(Token = "0x20005A7")]
		public enum ColorWheelMode
		{
			// Token: 0x0400394E RID: 14670
			[Token(Token = "0x400394E")]
			Linear,
			// Token: 0x0400394F RID: 14671
			[Token(Token = "0x400394F")]
			Log
		}

		// Token: 0x020005A8 RID: 1448
		[Token(Token = "0x20005A8")]
		[Serializable]
		public struct ColorWheelsSettings
		{
			// Token: 0x17000376 RID: 886
			// (get) Token: 0x0600307B RID: 12411 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000376")]
			public static ColorGradingModel.ColorWheelsSettings defaultSettings
			{
				[Token(Token = "0x600307B")]
				[Address(RVA = "0x19BCAB0", Offset = "0x19BBAB0", VA = "0x1819BCAB0")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003950 RID: 14672
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003950")]
			public ColorGradingModel.ColorWheelMode mode;

			// Token: 0x04003951 RID: 14673
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003951")]
			[TrackballGroup]
			public ColorGradingModel.LogWheelsSettings log;

			// Token: 0x04003952 RID: 14674
			[FieldOffset(Offset = "0x34")]
			[Token(Token = "0x4003952")]
			[TrackballGroup]
			public ColorGradingModel.LinearWheelsSettings linear;
		}

		// Token: 0x020005A9 RID: 1449
		[Token(Token = "0x20005A9")]
		[Serializable]
		public struct CurvesSettings
		{
			// Token: 0x17000377 RID: 887
			// (get) Token: 0x0600307C RID: 12412 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000377")]
			public static ColorGradingModel.CurvesSettings defaultSettings
			{
				[Token(Token = "0x600307C")]
				[Address(RVA = "0x19BCB80", Offset = "0x19BBB80", VA = "0x1819BCB80")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003953 RID: 14675
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003953")]
			public ColorGradingCurve master;

			// Token: 0x04003954 RID: 14676
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003954")]
			public ColorGradingCurve red;

			// Token: 0x04003955 RID: 14677
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003955")]
			public ColorGradingCurve green;

			// Token: 0x04003956 RID: 14678
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x4003956")]
			public ColorGradingCurve blue;

			// Token: 0x04003957 RID: 14679
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x4003957")]
			public ColorGradingCurve hueVShue;

			// Token: 0x04003958 RID: 14680
			[FieldOffset(Offset = "0x28")]
			[Token(Token = "0x4003958")]
			public ColorGradingCurve hueVSsat;

			// Token: 0x04003959 RID: 14681
			[FieldOffset(Offset = "0x30")]
			[Token(Token = "0x4003959")]
			public ColorGradingCurve satVSsat;

			// Token: 0x0400395A RID: 14682
			[FieldOffset(Offset = "0x38")]
			[Token(Token = "0x400395A")]
			public ColorGradingCurve lumVSsat;

			// Token: 0x0400395B RID: 14683
			[FieldOffset(Offset = "0x40")]
			[Token(Token = "0x400395B")]
			[HideInInspector]
			public int e_CurrentEditingCurve;

			// Token: 0x0400395C RID: 14684
			[FieldOffset(Offset = "0x44")]
			[Token(Token = "0x400395C")]
			[HideInInspector]
			public bool e_CurveY;

			// Token: 0x0400395D RID: 14685
			[FieldOffset(Offset = "0x45")]
			[Token(Token = "0x400395D")]
			[HideInInspector]
			public bool e_CurveR;

			// Token: 0x0400395E RID: 14686
			[FieldOffset(Offset = "0x46")]
			[Token(Token = "0x400395E")]
			[HideInInspector]
			public bool e_CurveG;

			// Token: 0x0400395F RID: 14687
			[FieldOffset(Offset = "0x47")]
			[Token(Token = "0x400395F")]
			[HideInInspector]
			public bool e_CurveB;
		}

		// Token: 0x020005AA RID: 1450
		[Token(Token = "0x20005AA")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x17000378 RID: 888
			// (get) Token: 0x0600307D RID: 12413 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000378")]
			public static ColorGradingModel.Settings defaultSettings
			{
				[Token(Token = "0x600307D")]
				[Address(RVA = "0x19BDC60", Offset = "0x19BCC60", VA = "0x1819BDC60")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003960 RID: 14688
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003960")]
			public ColorGradingModel.TonemappingSettings tonemapping;

			// Token: 0x04003961 RID: 14689
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x4003961")]
			public ColorGradingModel.BasicSettings basic;

			// Token: 0x04003962 RID: 14690
			[FieldOffset(Offset = "0x34")]
			[Token(Token = "0x4003962")]
			public ColorGradingModel.ChannelMixerSettings channelMixer;

			// Token: 0x04003963 RID: 14691
			[FieldOffset(Offset = "0x5C")]
			[Token(Token = "0x4003963")]
			public ColorGradingModel.ColorWheelsSettings colorWheels;

			// Token: 0x04003964 RID: 14692
			[FieldOffset(Offset = "0xC0")]
			[Token(Token = "0x4003964")]
			public ColorGradingModel.CurvesSettings curves;
		}
	}
}
