using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000515 RID: 1301
	[Token(Token = "0x2000515")]
	public sealed class ColorGradingComponent : PostProcessingComponentRenderTexture<ColorGradingModel>
	{
		// Token: 0x17000328 RID: 808
		// (get) Token: 0x06002D04 RID: 11524 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000328")]
		public override bool active
		{
			[Token(Token = "0x6002D04")]
			[Address(RVA = "0xE8EDB0", Offset = "0xE8DBB0", VA = "0x180E8EDB0", Slot = "5")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002D05 RID: 11525 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D05")]
		[Address(RVA = "0xE8ED10", Offset = "0xE8DB10", VA = "0x180E8ED10")]
		private float StandardIlluminantY(float x)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D06 RID: 11526 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D06")]
		[Address(RVA = "0xE8BDB0", Offset = "0xE8ABB0", VA = "0x180E8BDB0")]
		private Vector3 CIExyToLMS(float x, float y)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D07 RID: 11527 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D07")]
		[Address(RVA = "0xE8BE40", Offset = "0xE8AC40", VA = "0x180E8BE40")]
		private Vector3 CalculateColorBalance(float temperature, float tint)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D08 RID: 11528 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D08")]
		[Address(RVA = "0xE8E6C0", Offset = "0xE8D4C0", VA = "0x180E8E6C0")]
		private static Color NormalizeColor(Color c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D09 RID: 11529 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D09")]
		[Address(RVA = "0xE8C410", Offset = "0xE8B210", VA = "0x180E8C410")]
		private static Vector3 ClampVector(Vector3 v, float min, float max)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0A RID: 11530 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0A")]
		[Address(RVA = "0xE8DD40", Offset = "0xE8CB40", VA = "0x180E8DD40")]
		public static Vector3 GetLiftValue(Color lift)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0B RID: 11531 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0B")]
		[Address(RVA = "0xE8DAA0", Offset = "0xE8C8A0", VA = "0x180E8DAA0")]
		public static Vector3 GetGammaValue(Color gamma)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0C RID: 11532 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0C")]
		[Address(RVA = "0xE8D850", Offset = "0xE8C650", VA = "0x180E8D850")]
		public static Vector3 GetGainValue(Color gain)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0D RID: 11533 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0D")]
		[Address(RVA = "0xE8BF60", Offset = "0xE8AD60", VA = "0x180E8BF60")]
		public static void CalculateLiftGammaGain(Color lift, Color gamma, Color gain, out Vector3 outLift, out Vector3 outGamma, out Vector3 outGain)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0E RID: 11534 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0E")]
		[Address(RVA = "0xE8E400", Offset = "0xE8D200", VA = "0x180E8E400")]
		public static Vector3 GetSlopeValue(Color slope)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D0F RID: 11535 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D0F")]
		[Address(RVA = "0xE8E170", Offset = "0xE8CF70", VA = "0x180E8E170")]
		public static Vector3 GetPowerValue(Color power)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D10 RID: 11536 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D10")]
		[Address(RVA = "0xE8DF50", Offset = "0xE8CD50", VA = "0x180E8DF50")]
		public static Vector3 GetOffsetValue(Color offset)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D11 RID: 11537 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D11")]
		[Address(RVA = "0xE8C1C0", Offset = "0xE8AFC0", VA = "0x180E8C1C0")]
		public static void CalculateSlopePowerOffset(Color slope, Color power, Color offset, out Vector3 outSlope, out Vector3 outPower, out Vector3 outOffset)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D12 RID: 11538 RVA: 0x00061454 File Offset: 0x0005F654
		[Token(Token = "0x6002D12")]
		[Address(RVA = "0xE8D090", Offset = "0xE8BE90", VA = "0x180E8D090")]
		private TextureFormat GetCurveFormat()
		{
			bool flag = SystemInfo.SupportsTextureFormat((TextureFormat)((uint)17));
			return TextureFormat.RGBA32;
		}

		// Token: 0x06002D13 RID: 11539 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D13")]
		[Address(RVA = "0xE8D0C0", Offset = "0xE8BEC0", VA = "0x180E8D0C0")]
		private Texture2D GetCurveTexture()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D14 RID: 11540 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D14")]
		[Address(RVA = "0xE8E620", Offset = "0xE8D420", VA = "0x180E8E620")]
		private bool IsLogLutValid(RenderTexture lut)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D15 RID: 11541 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D15")]
		[Address(RVA = "0xE8DF30", Offset = "0xE8CD30", VA = "0x180E8DF30")]
		private RenderTextureFormat GetLutFormat()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D16 RID: 11542 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D16")]
		[Address(RVA = "0xE8C4D0", Offset = "0xE8B2D0", VA = "0x180E8C4D0")]
		private void GenerateLut()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D17 RID: 11543 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D17")]
		[Address(RVA = "0xE8E9A0", Offset = "0xE8D7A0", VA = "0x180E8E9A0", Slot = "10")]
		public override void Prepare(Material uberMaterial)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D18 RID: 11544 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D18")]
		[Address(RVA = "0xE8E830", Offset = "0xE8D630", VA = "0x180E8E830")]
		public void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D19 RID: 11545 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D19")]
		[Address(RVA = "0xE8E7A0", Offset = "0xE8D5A0", VA = "0x180E8E7A0", Slot = "7")]
		public override void OnDisable()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D1A RID: 11546 RVA: 0x0006146C File Offset: 0x0005F66C
		[Token(Token = "0x6002D1A")]
		[Address(RVA = "0xE8ED40", Offset = "0xE8DB40", VA = "0x180E8ED40")]
		public ColorGradingComponent()
		{
			Color[] array = new Color[256];
			this.m_pixels = array;
			base..ctor();
		}

		// Token: 0x0400353A RID: 13626
		[Token(Token = "0x400353A")]
		private const int k_InternalLogLutSize = 32;

		// Token: 0x0400353B RID: 13627
		[Token(Token = "0x400353B")]
		private const int k_CurvePrecision = 128;

		// Token: 0x0400353C RID: 13628
		[Token(Token = "0x400353C")]
		private const float k_CurveStep = 0.0078125f;

		// Token: 0x0400353D RID: 13629
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x400353D")]
		private Texture2D m_GradingCurves;

		// Token: 0x0400353E RID: 13630
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x400353E")]
		private Color[] m_pixels;

		// Token: 0x02000516 RID: 1302
		[Token(Token = "0x2000516")]
		private static class Uniforms
		{
			// Token: 0x0400353F RID: 13631
			[Token(Token = "0x400353F")]
			internal static readonly int _LutParams = Shader.PropertyToID("_LutParams");

			// Token: 0x04003540 RID: 13632
			[Token(Token = "0x4003540")]
			internal static readonly int _NeutralTonemapperParams1 = Shader.PropertyToID("_NeutralTonemapperParams1");

			// Token: 0x04003541 RID: 13633
			[Token(Token = "0x4003541")]
			internal static readonly int _NeutralTonemapperParams2 = Shader.PropertyToID("_NeutralTonemapperParams2");

			// Token: 0x04003542 RID: 13634
			[Token(Token = "0x4003542")]
			internal static readonly int _HueShift = Shader.PropertyToID("_HueShift");

			// Token: 0x04003543 RID: 13635
			[Token(Token = "0x4003543")]
			internal static readonly int _Saturation = Shader.PropertyToID("_Saturation");

			// Token: 0x04003544 RID: 13636
			[Token(Token = "0x4003544")]
			internal static readonly int _Contrast = Shader.PropertyToID("_Contrast");

			// Token: 0x04003545 RID: 13637
			[Token(Token = "0x4003545")]
			internal static readonly int _Balance = Shader.PropertyToID("_Balance");

			// Token: 0x04003546 RID: 13638
			[Token(Token = "0x4003546")]
			internal static readonly int _Lift = Shader.PropertyToID("_Lift");

			// Token: 0x04003547 RID: 13639
			[Token(Token = "0x4003547")]
			internal static readonly int _InvGamma = Shader.PropertyToID("_InvGamma");

			// Token: 0x04003548 RID: 13640
			[Token(Token = "0x4003548")]
			internal static readonly int _Gain = Shader.PropertyToID("_Gain");

			// Token: 0x04003549 RID: 13641
			[Token(Token = "0x4003549")]
			internal static readonly int _Slope = Shader.PropertyToID("_Slope");

			// Token: 0x0400354A RID: 13642
			[Token(Token = "0x400354A")]
			internal static readonly int _Power = Shader.PropertyToID("_Power");

			// Token: 0x0400354B RID: 13643
			[Token(Token = "0x400354B")]
			internal static readonly int _Offset = Shader.PropertyToID("_Offset");

			// Token: 0x0400354C RID: 13644
			[Token(Token = "0x400354C")]
			internal static readonly int _ChannelMixerRed = Shader.PropertyToID("_ChannelMixerRed");

			// Token: 0x0400354D RID: 13645
			[Token(Token = "0x400354D")]
			internal static readonly int _ChannelMixerGreen = Shader.PropertyToID("_ChannelMixerGreen");

			// Token: 0x0400354E RID: 13646
			[Token(Token = "0x400354E")]
			internal static readonly int _ChannelMixerBlue = Shader.PropertyToID("_ChannelMixerBlue");

			// Token: 0x0400354F RID: 13647
			[Token(Token = "0x400354F")]
			internal static readonly int _Curves = Shader.PropertyToID("_Curves");

			// Token: 0x04003550 RID: 13648
			[Token(Token = "0x4003550")]
			internal static readonly int _LogLut = Shader.PropertyToID("_LogLut");

			// Token: 0x04003551 RID: 13649
			[Token(Token = "0x4003551")]
			internal static readonly int _LogLut_Params = Shader.PropertyToID("_LogLut_Params");

			// Token: 0x04003552 RID: 13650
			[Token(Token = "0x4003552")]
			internal static readonly int _ExposureEV = Shader.PropertyToID("_ExposureEV");
		}
	}
}
