using System;
using Cpp2IlInjected;
using UnityEngine.Rendering;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200051D RID: 1309
	[Token(Token = "0x200051D")]
	public sealed class FogComponent : PostProcessingComponentCommandBuffer<FogModel>
	{
		// Token: 0x1700032C RID: 812
		// (get) Token: 0x06002D35 RID: 11573 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700032C")]
		public override bool active
		{
			[Token(Token = "0x6002D35")]
			[Address(RVA = "0x4C5770", Offset = "0x4C4570", VA = "0x1804C5770", Slot = "5")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002D36 RID: 11574 RVA: 0x00061854 File Offset: 0x0005FA54
		[Token(Token = "0x6002D36")]
		[Address(RVA = "0x4C5280", Offset = "0x4C4080", VA = "0x1804C5280", Slot = "11")]
		public override string GetName()
		{
			return "Fog";
		}

		// Token: 0x06002D37 RID: 11575 RVA: 0x00061868 File Offset: 0x0005FA68
		[Token(Token = "0x6002D37")]
		[Address(RVA = "0x370C60", Offset = "0x36FA60", VA = "0x180370C60", Slot = "4")]
		public override DepthTextureMode GetCameraFlags()
		{
			return DepthTextureMode.Depth;
		}

		// Token: 0x06002D38 RID: 11576 RVA: 0x00061878 File Offset: 0x0005FA78
		[Token(Token = "0x6002D38")]
		[Address(RVA = "0x4C5270", Offset = "0x4C4070", VA = "0x1804C5270", Slot = "10")]
		public override CameraEvent GetCameraEvent()
		{
			return CameraEvent.AfterImageEffectsOpaque;
		}

		// Token: 0x06002D39 RID: 11577 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002D39")]
		[Address(RVA = "0x4C52B0", Offset = "0x4C40B0", VA = "0x1804C52B0", Slot = "12")]
		public override void PopulateCommandBuffer(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002D3A RID: 11578 RVA: 0x00061888 File Offset: 0x0005FA88
		[Token(Token = "0x6002D3A")]
		[Address(RVA = "0x4C5730", Offset = "0x4C4530", VA = "0x1804C5730")]
		public FogComponent()
		{
		}

		// Token: 0x04003577 RID: 13687
		[Token(Token = "0x4003577")]
		private const string k_ShaderString = "Hidden/Post FX/Fog";

		// Token: 0x0200051E RID: 1310
		[Token(Token = "0x200051E")]
		private static class Uniforms
		{
			// Token: 0x04003578 RID: 13688
			[Token(Token = "0x4003578")]
			internal static readonly int _FogColor = Shader.PropertyToID("_FogColor");

			// Token: 0x04003579 RID: 13689
			[Token(Token = "0x4003579")]
			internal static readonly int _Density = Shader.PropertyToID("_Density");

			// Token: 0x0400357A RID: 13690
			[Token(Token = "0x400357A")]
			internal static readonly int _Start = Shader.PropertyToID("_Start");

			// Token: 0x0400357B RID: 13691
			[Token(Token = "0x400357B")]
			internal static readonly int _End = Shader.PropertyToID("_End");

			// Token: 0x0400357C RID: 13692
			[Token(Token = "0x400357C")]
			internal static readonly int _TempRT = Shader.PropertyToID("_TempRT");
		}
	}
}
