using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200056D RID: 1389
	[Token(Token = "0x200056D")]
	public sealed class ColorGradingComponent : PostProcessingComponentRenderTexture<ColorGradingModel>
	{
		// Token: 0x1700034D RID: 845
		// (get) Token: 0x06002FCD RID: 12237 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700034D")]
		public override bool active
		{
			[Token(Token = "0x6002FCD")]
			[Address(RVA = "0x12ECD30", Offset = "0x12EBD30", VA = "0x1812ECD30", Slot = "5")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002FCE RID: 12238 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FCE")]
		[Address(RVA = "0x12ECC90", Offset = "0x12EBC90", VA = "0x1812ECC90")]
		private float StandardIlluminantY(float x)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FCF RID: 12239 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FCF")]
		[Address(RVA = "0x12E9D30", Offset = "0x12E8D30", VA = "0x1812E9D30")]
		private Vector3 CIExyToLMS(float x, float y)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD0 RID: 12240 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD0")]
		[Address(RVA = "0x12E9DC0", Offset = "0x12E8DC0", VA = "0x1812E9DC0")]
		private Vector3 CalculateColorBalance(float temperature, float tint)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD1 RID: 12241 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD1")]
		[Address(RVA = "0x12EC640", Offset = "0x12EB640", VA = "0x1812EC640")]
		private static Color NormalizeColor(Color c)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD2 RID: 12242 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD2")]
		[Address(RVA = "0x12EA390", Offset = "0x12E9390", VA = "0x1812EA390")]
		private static Vector3 ClampVector(Vector3 v, float min, float max)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD3 RID: 12243 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD3")]
		[Address(RVA = "0x12EBCC0", Offset = "0x12EACC0", VA = "0x1812EBCC0")]
		public static Vector3 GetLiftValue(Color lift)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD4 RID: 12244 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD4")]
		[Address(RVA = "0x12EBA20", Offset = "0x12EAA20", VA = "0x1812EBA20")]
		public static Vector3 GetGammaValue(Color gamma)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD5 RID: 12245 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD5")]
		[Address(RVA = "0x12EB7D0", Offset = "0x12EA7D0", VA = "0x1812EB7D0")]
		public static Vector3 GetGainValue(Color gain)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD6 RID: 12246 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD6")]
		[Address(RVA = "0x12E9EE0", Offset = "0x12E8EE0", VA = "0x1812E9EE0")]
		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: 0x06002FD7 RID: 12247 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD7")]
		[Address(RVA = "0x12EC380", Offset = "0x12EB380", VA = "0x1812EC380")]
		public static Vector3 GetSlopeValue(Color slope)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD8 RID: 12248 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD8")]
		[Address(RVA = "0x12EC0F0", Offset = "0x12EB0F0", VA = "0x1812EC0F0")]
		public static Vector3 GetPowerValue(Color power)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FD9 RID: 12249 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FD9")]
		[Address(RVA = "0x12EBED0", Offset = "0x12EAED0", VA = "0x1812EBED0")]
		public static Vector3 GetOffsetValue(Color offset)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FDA RID: 12250 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FDA")]
		[Address(RVA = "0x12EA140", Offset = "0x12E9140", VA = "0x1812EA140")]
		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: 0x06002FDB RID: 12251 RVA: 0x000686E8 File Offset: 0x000668E8
		[Token(Token = "0x6002FDB")]
		[Address(RVA = "0x12EB010", Offset = "0x12EA010", VA = "0x1812EB010")]
		private TextureFormat GetCurveFormat()
		{
			bool flag = SystemInfo.SupportsTextureFormat((TextureFormat)((uint)17));
			return TextureFormat.RGBA32;
		}

		// Token: 0x06002FDC RID: 12252 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FDC")]
		[Address(RVA = "0x12EB040", Offset = "0x12EA040", VA = "0x1812EB040")]
		private Texture2D GetCurveTexture()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FDD RID: 12253 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FDD")]
		[Address(RVA = "0x12EC5A0", Offset = "0x12EB5A0", VA = "0x1812EC5A0")]
		private bool IsLogLutValid(RenderTexture lut)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FDE RID: 12254 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FDE")]
		[Address(RVA = "0x12EBEB0", Offset = "0x12EAEB0", VA = "0x1812EBEB0")]
		private RenderTextureFormat GetLutFormat()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FDF RID: 12255 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FDF")]
		[Address(RVA = "0x12EA450", Offset = "0x12E9450", VA = "0x1812EA450")]
		private void GenerateLut()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FE0 RID: 12256 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FE0")]
		[Address(RVA = "0x12EC920", Offset = "0x12EB920", VA = "0x1812EC920", Slot = "10")]
		public override void Prepare(Material uberMaterial)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FE1 RID: 12257 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FE1")]
		[Address(RVA = "0x12EC7B0", Offset = "0x12EB7B0", VA = "0x1812EC7B0")]
		public void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FE2 RID: 12258 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FE2")]
		[Address(RVA = "0x12EC720", Offset = "0x12EB720", VA = "0x1812EC720", Slot = "7")]
		public override void OnDisable()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FE3 RID: 12259 RVA: 0x00068700 File Offset: 0x00066900
		[Token(Token = "0x6002FE3")]
		[Address(RVA = "0x12ECCC0", Offset = "0x12EBCC0", VA = "0x1812ECCC0")]
		public ColorGradingComponent()
		{
			Color[] array = new Color[256];
			this.m_pixels = array;
			base..ctor();
		}

		// Token: 0x04003824 RID: 14372
		[Token(Token = "0x4003824")]
		private const int k_InternalLogLutSize = 32;

		// Token: 0x04003825 RID: 14373
		[Token(Token = "0x4003825")]
		private const int k_CurvePrecision = 128;

		// Token: 0x04003826 RID: 14374
		[Token(Token = "0x4003826")]
		private const float k_CurveStep = 0.0078125f;

		// Token: 0x04003827 RID: 14375
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003827")]
		private Texture2D m_GradingCurves;

		// Token: 0x04003828 RID: 14376
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003828")]
		private Color[] m_pixels;

		// Token: 0x0200056E RID: 1390
		[Token(Token = "0x200056E")]
		private static class Uniforms
		{
			// Token: 0x04003829 RID: 14377
			[Token(Token = "0x4003829")]
			internal static readonly int _LutParams = Shader.PropertyToID("_LutParams");

			// Token: 0x0400382A RID: 14378
			[Token(Token = "0x400382A")]
			internal static readonly int _NeutralTonemapperParams1 = Shader.PropertyToID("_NeutralTonemapperParams1");

			// Token: 0x0400382B RID: 14379
			[Token(Token = "0x400382B")]
			internal static readonly int _NeutralTonemapperParams2 = Shader.PropertyToID("_NeutralTonemapperParams2");

			// Token: 0x0400382C RID: 14380
			[Token(Token = "0x400382C")]
			internal static readonly int _HueShift = Shader.PropertyToID("_HueShift");

			// Token: 0x0400382D RID: 14381
			[Token(Token = "0x400382D")]
			internal static readonly int _Saturation = Shader.PropertyToID("_Saturation");

			// Token: 0x0400382E RID: 14382
			[Token(Token = "0x400382E")]
			internal static readonly int _Contrast = Shader.PropertyToID("_Contrast");

			// Token: 0x0400382F RID: 14383
			[Token(Token = "0x400382F")]
			internal static readonly int _Balance = Shader.PropertyToID("_Balance");

			// Token: 0x04003830 RID: 14384
			[Token(Token = "0x4003830")]
			internal static readonly int _Lift = Shader.PropertyToID("_Lift");

			// Token: 0x04003831 RID: 14385
			[Token(Token = "0x4003831")]
			internal static readonly int _InvGamma = Shader.PropertyToID("_InvGamma");

			// Token: 0x04003832 RID: 14386
			[Token(Token = "0x4003832")]
			internal static readonly int _Gain = Shader.PropertyToID("_Gain");

			// Token: 0x04003833 RID: 14387
			[Token(Token = "0x4003833")]
			internal static readonly int _Slope = Shader.PropertyToID("_Slope");

			// Token: 0x04003834 RID: 14388
			[Token(Token = "0x4003834")]
			internal static readonly int _Power = Shader.PropertyToID("_Power");

			// Token: 0x04003835 RID: 14389
			[Token(Token = "0x4003835")]
			internal static readonly int _Offset = Shader.PropertyToID("_Offset");

			// Token: 0x04003836 RID: 14390
			[Token(Token = "0x4003836")]
			internal static readonly int _ChannelMixerRed = Shader.PropertyToID("_ChannelMixerRed");

			// Token: 0x04003837 RID: 14391
			[Token(Token = "0x4003837")]
			internal static readonly int _ChannelMixerGreen = Shader.PropertyToID("_ChannelMixerGreen");

			// Token: 0x04003838 RID: 14392
			[Token(Token = "0x4003838")]
			internal static readonly int _ChannelMixerBlue = Shader.PropertyToID("_ChannelMixerBlue");

			// Token: 0x04003839 RID: 14393
			[Token(Token = "0x4003839")]
			internal static readonly int _Curves = Shader.PropertyToID("_Curves");

			// Token: 0x0400383A RID: 14394
			[Token(Token = "0x400383A")]
			internal static readonly int _LogLut = Shader.PropertyToID("_LogLut");

			// Token: 0x0400383B RID: 14395
			[Token(Token = "0x400383B")]
			internal static readonly int _LogLut_Params = Shader.PropertyToID("_LogLut_Params");

			// Token: 0x0400383C RID: 14396
			[Token(Token = "0x400383C")]
			internal static readonly int _ExposureEV = Shader.PropertyToID("_ExposureEV");
		}
	}
}
