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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000548 RID: 1352
	[Token(Token = "0x2000548")]
	[Serializable]
	public class ColorGradingModel : PostProcessingModel
	{
		// Token: 0x17000349 RID: 841
		// (get) Token: 0x06002DA4 RID: 11684 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x06002DA5 RID: 11685 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000349")]
		public ColorGradingModel.Settings settings
		{
			[Token(Token = "0x6002DA4")]
			[Address(RVA = "0xE8F260", Offset = "0xE8E060", VA = "0x180E8F260")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x6002DA5")]
			[Address(RVA = "0xE8F2E0", Offset = "0xE8E0E0", VA = "0x180E8F2E0")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x1700034A RID: 842
		// (get) Token: 0x06002DA6 RID: 11686 RVA: 0x000621AC File Offset: 0x000603AC
		// (set) Token: 0x06002DA7 RID: 11687 RVA: 0x000621C0 File Offset: 0x000603C0
		[Token(Token = "0x1700034A")]
		public bool isDirty
		{
			[Token(Token = "0x6002DA6")]
			[Address(RVA = "0x9C74F0", Offset = "0x9C62F0", VA = "0x1809C74F0")]
			get;
			[Token(Token = "0x6002DA7")]
			[Address(RVA = "0x9C7610", Offset = "0x9C6410", VA = "0x1809C7610")]
			internal set;
		}

		// Token: 0x1700034B RID: 843
		// (get) Token: 0x06002DA8 RID: 11688 RVA: 0x000621D4 File Offset: 0x000603D4
		// (set) Token: 0x06002DA9 RID: 11689 RVA: 0x000621E8 File Offset: 0x000603E8
		[Token(Token = "0x1700034B")]
		public RenderTexture bakedLut
		{
			[Token(Token = "0x6002DA8")]
			[Address(RVA = "0x68F920", Offset = "0x68E720", VA = "0x18068F920")]
			[CompilerGenerated]
			get
			{
				return this.<bakedLut>k__BackingField;
			}
			[Token(Token = "0x6002DA9")]
			[Address(RVA = "0x68F9A0", Offset = "0x68E7A0", VA = "0x18068F9A0")]
			[CompilerGenerated]
			internal set
			{
				/*
An exception occurred when decompiling this method (06002DA9)

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: 0x06002DAA RID: 11690 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002DAA")]
		[Address(RVA = "0xE8F110", Offset = "0xE8DF10", VA = "0x180E8F110", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002DAB RID: 11691 RVA: 0x000621FC File Offset: 0x000603FC
		[Token(Token = "0x6002DAB")]
		[Address(RVA = "0xE8F100", Offset = "0xE8DF00", VA = "0x180E8F100", Slot = "5")]
		public override void OnValidate()
		{
			this.<isDirty>k__BackingField = true;
		}

		// Token: 0x06002DAC RID: 11692 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002DAC")]
		[Address(RVA = "0xE8F1C0", Offset = "0xE8DFC0", VA = "0x180E8F1C0")]
		public ColorGradingModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x04003645 RID: 13893
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003645")]
		[SerializeField]
		private ColorGradingModel.Settings m_Settings;

		// Token: 0x02000549 RID: 1353
		[Token(Token = "0x2000549")]
		public enum Tonemapper
		{
			// Token: 0x04003649 RID: 13897
			[Token(Token = "0x4003649")]
			None,
			// Token: 0x0400364A RID: 13898
			[Token(Token = "0x400364A")]
			ACES,
			// Token: 0x0400364B RID: 13899
			[Token(Token = "0x400364B")]
			Neutral
		}

		// Token: 0x0200054A RID: 1354
		[Token(Token = "0x200054A")]
		[Serializable]
		public struct TonemappingSettings
		{
			// Token: 0x1700034C RID: 844
			// (get) Token: 0x06002DAD RID: 11693 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700034C")]
			public static ColorGradingModel.TonemappingSettings defaultSettings
			{
				[Token(Token = "0x6002DAD")]
				[Address(RVA = "0x5FD980", Offset = "0x5FC780", VA = "0x1805FD980")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x0400364C RID: 13900
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x400364C")]
			[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: 0x0400364D RID: 13901
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x400364D")]
			[Range(-0.1f, 0.1f)]
			public float neutralBlackIn;

			// Token: 0x0400364E RID: 13902
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x400364E")]
			[Range(1f, 20f)]
			public float neutralWhiteIn;

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

			// Token: 0x04003650 RID: 13904
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003650")]
			[Range(1f, 19f)]
			public float neutralWhiteOut;

			// Token: 0x04003651 RID: 13905
			[FieldOffset(Offset = "0x14")]
			[Token(Token = "0x4003651")]
			[Range(0.1f, 20f)]
			public float neutralWhiteLevel;

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

		// Token: 0x0200054B RID: 1355
		[Token(Token = "0x200054B")]
		[Serializable]
		public struct BasicSettings
		{
			// Token: 0x1700034D RID: 845
			// (get) Token: 0x06002DAE RID: 11694 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700034D")]
			public static ColorGradingModel.BasicSettings defaultSettings
			{
				[Token(Token = "0x6002DAE")]
				[Address(RVA = "0x5F8A60", Offset = "0x5F7860", VA = "0x1805F8A60")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003653 RID: 13907
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003653")]
			[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: 0x04003654 RID: 13908
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003654")]
			[Tooltip("Sets the white balance to a custom color temperature.")]
			[Range(-100f, 100f)]
			public float temperature;

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

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

			// Token: 0x04003657 RID: 13911
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003657")]
			[Attribute(Name = "RangeAttribute", RVA = "0xDC0C0", Offset = "0xDB4C0")]
			[Tooltip("Pushes the intensity of all colors.")]
			public float saturation;

			// Token: 0x04003658 RID: 13912
			[FieldOffset(Offset = "0x14")]
			[Token(Token = "0x4003658")]
			[Attribute(Name = "RangeAttribute", RVA = "0xDC180", Offset = "0xDB580")]
			[Tooltip("Expands or shrinks the overall range of tonal values.")]
			public float contrast;
		}

		// Token: 0x0200054C RID: 1356
		[Token(Token = "0x200054C")]
		[Serializable]
		public struct ChannelMixerSettings
		{
			// Token: 0x1700034E RID: 846
			// (get) Token: 0x06002DAF RID: 11695 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700034E")]
			public static ColorGradingModel.ChannelMixerSettings defaultSettings
			{
				[Token(Token = "0x6002DAF")]
				[Address(RVA = "0x5F91D0", Offset = "0x5F7FD0", VA = "0x1805F91D0")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003659 RID: 13913
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003659")]
			public Vector3 red;

			// Token: 0x0400365A RID: 13914
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x400365A")]
			public Vector3 green;

			// Token: 0x0400365B RID: 13915
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x400365B")]
			public Vector3 blue;

			// Token: 0x0400365C RID: 13916
			[FieldOffset(Offset = "0x24")]
			[Token(Token = "0x400365C")]
			[HideInInspector]
			public int currentEditingChannel;
		}

		// Token: 0x0200054D RID: 1357
		[Token(Token = "0x200054D")]
		[Serializable]
		public struct LogWheelsSettings
		{
			// Token: 0x1700034F RID: 847
			// (get) Token: 0x06002DB0 RID: 11696 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x1700034F")]
			public static ColorGradingModel.LogWheelsSettings defaultSettings
			{
				[Token(Token = "0x6002DB0")]
				[Address(RVA = "0x5FCA30", Offset = "0x5FB830", VA = "0x1805FCA30")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x0400365D RID: 13917
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x400365D")]
			[Trackball("GetSlopeValue")]
			public Color slope;

			// Token: 0x0400365E RID: 13918
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x400365E")]
			[Trackball("GetPowerValue")]
			public Color power;

			// Token: 0x0400365F RID: 13919
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x400365F")]
			[Trackball("GetOffsetValue")]
			public Color offset;
		}

		// Token: 0x0200054E RID: 1358
		[Token(Token = "0x200054E")]
		[Serializable]
		public struct LinearWheelsSettings
		{
			// Token: 0x17000350 RID: 848
			// (get) Token: 0x06002DB1 RID: 11697 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000350")]
			public static ColorGradingModel.LinearWheelsSettings defaultSettings
			{
				[Token(Token = "0x6002DB1")]
				[Address(RVA = "0x5FCA30", Offset = "0x5FB830", VA = "0x1805FCA30")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003660 RID: 13920
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003660")]
			[Trackball("GetLiftValue")]
			public Color lift;

			// Token: 0x04003661 RID: 13921
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x4003661")]
			[Trackball("GetGammaValue")]
			public Color gamma;

			// Token: 0x04003662 RID: 13922
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x4003662")]
			[Trackball("GetGainValue")]
			public Color gain;
		}

		// Token: 0x0200054F RID: 1359
		[Token(Token = "0x200054F")]
		public enum ColorWheelMode
		{
			// Token: 0x04003664 RID: 13924
			[Token(Token = "0x4003664")]
			Linear,
			// Token: 0x04003665 RID: 13925
			[Token(Token = "0x4003665")]
			Log
		}

		// Token: 0x02000550 RID: 1360
		[Token(Token = "0x2000550")]
		[Serializable]
		public struct ColorWheelsSettings
		{
			// Token: 0x17000351 RID: 849
			// (get) Token: 0x06002DB2 RID: 11698 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000351")]
			public static ColorGradingModel.ColorWheelsSettings defaultSettings
			{
				[Token(Token = "0x6002DB2")]
				[Address(RVA = "0x5F9940", Offset = "0x5F8740", VA = "0x1805F9940")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003666 RID: 13926
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003666")]
			public ColorGradingModel.ColorWheelMode mode;

			// Token: 0x04003667 RID: 13927
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003667")]
			[TrackballGroup]
			public ColorGradingModel.LogWheelsSettings log;

			// Token: 0x04003668 RID: 13928
			[FieldOffset(Offset = "0x34")]
			[Token(Token = "0x4003668")]
			[TrackballGroup]
			public ColorGradingModel.LinearWheelsSettings linear;
		}

		// Token: 0x02000551 RID: 1361
		[Token(Token = "0x2000551")]
		[Serializable]
		public struct CurvesSettings
		{
			// Token: 0x17000352 RID: 850
			// (get) Token: 0x06002DB3 RID: 11699 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000352")]
			public static ColorGradingModel.CurvesSettings defaultSettings
			{
				[Token(Token = "0x6002DB3")]
				[Address(RVA = "0x5F9A10", Offset = "0x5F8810", VA = "0x1805F9A10")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003669 RID: 13929
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003669")]
			public ColorGradingCurve master;

			// Token: 0x0400366A RID: 13930
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x400366A")]
			public ColorGradingCurve red;

			// Token: 0x0400366B RID: 13931
			[FieldOffset(Offset = "0x10")]
			[Token(Token = "0x400366B")]
			public ColorGradingCurve green;

			// Token: 0x0400366C RID: 13932
			[FieldOffset(Offset = "0x18")]
			[Token(Token = "0x400366C")]
			public ColorGradingCurve blue;

			// Token: 0x0400366D RID: 13933
			[FieldOffset(Offset = "0x20")]
			[Token(Token = "0x400366D")]
			public ColorGradingCurve hueVShue;

			// Token: 0x0400366E RID: 13934
			[FieldOffset(Offset = "0x28")]
			[Token(Token = "0x400366E")]
			public ColorGradingCurve hueVSsat;

			// Token: 0x0400366F RID: 13935
			[FieldOffset(Offset = "0x30")]
			[Token(Token = "0x400366F")]
			public ColorGradingCurve satVSsat;

			// Token: 0x04003670 RID: 13936
			[FieldOffset(Offset = "0x38")]
			[Token(Token = "0x4003670")]
			public ColorGradingCurve lumVSsat;

			// Token: 0x04003671 RID: 13937
			[FieldOffset(Offset = "0x40")]
			[Token(Token = "0x4003671")]
			[HideInInspector]
			public int e_CurrentEditingCurve;

			// Token: 0x04003672 RID: 13938
			[FieldOffset(Offset = "0x44")]
			[Token(Token = "0x4003672")]
			[HideInInspector]
			public bool e_CurveY;

			// Token: 0x04003673 RID: 13939
			[FieldOffset(Offset = "0x45")]
			[Token(Token = "0x4003673")]
			[HideInInspector]
			public bool e_CurveR;

			// Token: 0x04003674 RID: 13940
			[FieldOffset(Offset = "0x46")]
			[Token(Token = "0x4003674")]
			[HideInInspector]
			public bool e_CurveG;

			// Token: 0x04003675 RID: 13941
			[FieldOffset(Offset = "0x47")]
			[Token(Token = "0x4003675")]
			[HideInInspector]
			public bool e_CurveB;
		}

		// Token: 0x02000552 RID: 1362
		[Token(Token = "0x2000552")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x17000353 RID: 851
			// (get) Token: 0x06002DB4 RID: 11700 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000353")]
			public static ColorGradingModel.Settings defaultSettings
			{
				[Token(Token = "0x6002DB4")]
				[Address(RVA = "0x5FD660", Offset = "0x5FC460", VA = "0x1805FD660")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003676 RID: 13942
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003676")]
			public ColorGradingModel.TonemappingSettings tonemapping;

			// Token: 0x04003677 RID: 13943
			[FieldOffset(Offset = "0x1C")]
			[Token(Token = "0x4003677")]
			public ColorGradingModel.BasicSettings basic;

			// Token: 0x04003678 RID: 13944
			[FieldOffset(Offset = "0x34")]
			[Token(Token = "0x4003678")]
			public ColorGradingModel.ChannelMixerSettings channelMixer;

			// Token: 0x04003679 RID: 13945
			[FieldOffset(Offset = "0x5C")]
			[Token(Token = "0x4003679")]
			public ColorGradingModel.ColorWheelsSettings colorWheels;

			// Token: 0x0400367A RID: 13946
			[FieldOffset(Offset = "0xC0")]
			[Token(Token = "0x400367A")]
			public ColorGradingModel.CurvesSettings curves;
		}
	}
}
