using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using UnityEngine.Rendering;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000588 RID: 1416
	public sealed class FogComponent : PostProcessingComponentCommandBuffer<FogModel>
	{
		// Token: 0x170034D7 RID: 13527
		// (get) Token: 0x06009CCE RID: 40142 RVA: 0x00285C34 File Offset: 0x00283E34
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647814, XrefRangeEnd = 647817, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009CCF RID: 40143 RVA: 0x00285C84 File Offset: 0x00283E84
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647817, XrefRangeEnd = 647819, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override string GetName()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr_GetName_Public_Virtual_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}

		// Token: 0x06009CD0 RID: 40144 RVA: 0x00285CD0 File Offset: 0x00283ED0
		[CallerCount(0)]
		public unsafe override DepthTextureMode GetCameraFlags()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr_GetCameraFlags_Public_Virtual_DepthTextureMode_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009CD1 RID: 40145 RVA: 0x00285D20 File Offset: 0x00283F20
		[CallerCount(0)]
		public unsafe override CameraEvent GetCameraEvent()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr_GetCameraEvent_Public_Virtual_CameraEvent_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009CD2 RID: 40146 RVA: 0x00285D70 File Offset: 0x00283F70
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647819, XrefRangeEnd = 647872, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void PopulateCommandBuffer(CommandBuffer cb)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(cb);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr_PopulateCommandBuffer_Public_Virtual_Void_CommandBuffer_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009CD3 RID: 40147 RVA: 0x00285DCC File Offset: 0x00283FCC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 647875, RefRangeEnd = 647876, XrefRangeStart = 647872, XrefRangeEnd = 647875, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe FogComponent()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<FogComponent>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FogComponent.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009CD4 RID: 40148 RVA: 0x00285E18 File Offset: 0x00284018
		// Note: this type is marked as 'beforefieldinit'.
		static FogComponent()
		{
			Il2CppClassPointerStore<FogComponent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "FogComponent");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FogComponent>.NativeClassPtr);
			FogComponent.NativeFieldInfoPtr_k_ShaderString = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, "k_ShaderString");
			FogComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675582);
			FogComponent.NativeMethodInfoPtr_GetName_Public_Virtual_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675583);
			FogComponent.NativeMethodInfoPtr_GetCameraFlags_Public_Virtual_DepthTextureMode_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675584);
			FogComponent.NativeMethodInfoPtr_GetCameraEvent_Public_Virtual_CameraEvent_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675585);
			FogComponent.NativeMethodInfoPtr_PopulateCommandBuffer_Public_Virtual_Void_CommandBuffer_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675586);
			FogComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, 100675587);
		}

		// Token: 0x06009CD5 RID: 40149 RVA: 0x00285ED4 File Offset: 0x002840D4
		public FogComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170034D6 RID: 13526
		// (get) Token: 0x06009CD6 RID: 40150 RVA: 0x00285EE0 File Offset: 0x002840E0
		// (set) Token: 0x06009CD7 RID: 40151 RVA: 0x00285F00 File Offset: 0x00284100
		public unsafe static string k_ShaderString
		{
			get
			{
				IntPtr intPtr;
				IL2CPP.il2cpp_field_static_get_value(FogComponent.NativeFieldInfoPtr_k_ShaderString, (void*)(&intPtr));
				return IL2CPP.Il2CppStringToManaged(intPtr);
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(FogComponent.NativeFieldInfoPtr_k_ShaderString, IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x040068A7 RID: 26791
		private static readonly IntPtr NativeFieldInfoPtr_k_ShaderString;

		// Token: 0x040068A8 RID: 26792
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x040068A9 RID: 26793
		private static readonly IntPtr NativeMethodInfoPtr_GetName_Public_Virtual_String_0;

		// Token: 0x040068AA RID: 26794
		private static readonly IntPtr NativeMethodInfoPtr_GetCameraFlags_Public_Virtual_DepthTextureMode_0;

		// Token: 0x040068AB RID: 26795
		private static readonly IntPtr NativeMethodInfoPtr_GetCameraEvent_Public_Virtual_CameraEvent_0;

		// Token: 0x040068AC RID: 26796
		private static readonly IntPtr NativeMethodInfoPtr_PopulateCommandBuffer_Public_Virtual_Void_CommandBuffer_0;

		// Token: 0x040068AD RID: 26797
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000589 RID: 1417
		public static class Uniforms : Object
		{
			// Token: 0x06009CD8 RID: 40152 RVA: 0x00285F18 File Offset: 0x00284118
			// Note: this type is marked as 'beforefieldinit'.
			static Uniforms()
			{
				Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<FogComponent>.NativeClassPtr, "Uniforms");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr);
				FogComponent.Uniforms.NativeFieldInfoPtr__FogColor = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr, "_FogColor");
				FogComponent.Uniforms.NativeFieldInfoPtr__Density = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr, "_Density");
				FogComponent.Uniforms.NativeFieldInfoPtr__Start = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr, "_Start");
				FogComponent.Uniforms.NativeFieldInfoPtr__End = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr, "_End");
				FogComponent.Uniforms.NativeFieldInfoPtr__TempRT = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FogComponent.Uniforms>.NativeClassPtr, "_TempRT");
			}

			// Token: 0x06009CD9 RID: 40153 RVA: 0x0000A74C File Offset: 0x0000894C
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x170034D8 RID: 13528
			// (get) Token: 0x06009CDA RID: 40154 RVA: 0x00285FA8 File Offset: 0x002841A8
			// (set) Token: 0x06009CDB RID: 40155 RVA: 0x00285FC6 File Offset: 0x002841C6
			public unsafe static int _FogColor
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FogComponent.Uniforms.NativeFieldInfoPtr__FogColor, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FogComponent.Uniforms.NativeFieldInfoPtr__FogColor, (void*)(&value));
				}
			}

			// Token: 0x170034D9 RID: 13529
			// (get) Token: 0x06009CDC RID: 40156 RVA: 0x00285FD8 File Offset: 0x002841D8
			// (set) Token: 0x06009CDD RID: 40157 RVA: 0x00285FF6 File Offset: 0x002841F6
			public unsafe static int _Density
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FogComponent.Uniforms.NativeFieldInfoPtr__Density, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FogComponent.Uniforms.NativeFieldInfoPtr__Density, (void*)(&value));
				}
			}

			// Token: 0x170034DA RID: 13530
			// (get) Token: 0x06009CDE RID: 40158 RVA: 0x00286008 File Offset: 0x00284208
			// (set) Token: 0x06009CDF RID: 40159 RVA: 0x00286026 File Offset: 0x00284226
			public unsafe static int _Start
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FogComponent.Uniforms.NativeFieldInfoPtr__Start, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FogComponent.Uniforms.NativeFieldInfoPtr__Start, (void*)(&value));
				}
			}

			// Token: 0x170034DB RID: 13531
			// (get) Token: 0x06009CE0 RID: 40160 RVA: 0x00286038 File Offset: 0x00284238
			// (set) Token: 0x06009CE1 RID: 40161 RVA: 0x00286056 File Offset: 0x00284256
			public unsafe static int _End
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FogComponent.Uniforms.NativeFieldInfoPtr__End, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FogComponent.Uniforms.NativeFieldInfoPtr__End, (void*)(&value));
				}
			}

			// Token: 0x170034DC RID: 13532
			// (get) Token: 0x06009CE2 RID: 40162 RVA: 0x00286068 File Offset: 0x00284268
			// (set) Token: 0x06009CE3 RID: 40163 RVA: 0x00286086 File Offset: 0x00284286
			public unsafe static int _TempRT
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FogComponent.Uniforms.NativeFieldInfoPtr__TempRT, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FogComponent.Uniforms.NativeFieldInfoPtr__TempRT, (void*)(&value));
				}
			}

			// Token: 0x040068AE RID: 26798
			private static readonly IntPtr NativeFieldInfoPtr__FogColor;

			// Token: 0x040068AF RID: 26799
			private static readonly IntPtr NativeFieldInfoPtr__Density;

			// Token: 0x040068B0 RID: 26800
			private static readonly IntPtr NativeFieldInfoPtr__Start;

			// Token: 0x040068B1 RID: 26801
			private static readonly IntPtr NativeFieldInfoPtr__End;

			// Token: 0x040068B2 RID: 26802
			private static readonly IntPtr NativeFieldInfoPtr__TempRT;
		}
	}
}
