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

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200059B RID: 1435
	public sealed class VignetteComponent : PostProcessingComponentRenderTexture<VignetteModel>
	{
		// Token: 0x1700354A RID: 13642
		// (get) Token: 0x06009E04 RID: 40452 RVA: 0x00289A18 File Offset: 0x00287C18
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648662, XrefRangeEnd = 648663, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteComponent.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: 0x06009E05 RID: 40453 RVA: 0x00289A68 File Offset: 0x00287C68
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648663, XrefRangeEnd = 648683, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Prepare(Material uberMaterial)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(uberMaterial);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009E06 RID: 40454 RVA: 0x00289AC4 File Offset: 0x00287CC4
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 648686, RefRangeEnd = 648687, XrefRangeStart = 648683, XrefRangeEnd = 648686, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe VignetteComponent()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteComponent.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009E07 RID: 40455 RVA: 0x00289B10 File Offset: 0x00287D10
		// Note: this type is marked as 'beforefieldinit'.
		static VignetteComponent()
		{
			Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "VignetteComponent");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr);
			VignetteComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, 100675652);
			VignetteComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, 100675653);
			VignetteComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, 100675654);
		}

		// Token: 0x06009E08 RID: 40456 RVA: 0x00289B7C File Offset: 0x00287D7C
		public VignetteComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006964 RID: 26980
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x04006965 RID: 26981
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x04006966 RID: 26982
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200059C RID: 1436
		public static class Uniforms : Object
		{
			// Token: 0x06009E09 RID: 40457 RVA: 0x00289B88 File Offset: 0x00287D88
			// Note: this type is marked as 'beforefieldinit'.
			static Uniforms()
			{
				Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, "Uniforms");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr);
				VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Color = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr, "_Vignette_Color");
				VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr, "_Vignette_Center");
				VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Settings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr, "_Vignette_Settings");
				VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Mask = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr, "_Vignette_Mask");
				VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Opacity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteComponent.Uniforms>.NativeClassPtr, "_Vignette_Opacity");
			}

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

			// Token: 0x1700354B RID: 13643
			// (get) Token: 0x06009E0B RID: 40459 RVA: 0x00289C18 File Offset: 0x00287E18
			// (set) Token: 0x06009E0C RID: 40460 RVA: 0x00289C36 File Offset: 0x00287E36
			public unsafe static int _Vignette_Color
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Color, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Color, (void*)(&value));
				}
			}

			// Token: 0x1700354C RID: 13644
			// (get) Token: 0x06009E0D RID: 40461 RVA: 0x00289C48 File Offset: 0x00287E48
			// (set) Token: 0x06009E0E RID: 40462 RVA: 0x00289C66 File Offset: 0x00287E66
			public unsafe static int _Vignette_Center
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Center, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Center, (void*)(&value));
				}
			}

			// Token: 0x1700354D RID: 13645
			// (get) Token: 0x06009E0F RID: 40463 RVA: 0x00289C78 File Offset: 0x00287E78
			// (set) Token: 0x06009E10 RID: 40464 RVA: 0x00289C96 File Offset: 0x00287E96
			public unsafe static int _Vignette_Settings
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Settings, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Settings, (void*)(&value));
				}
			}

			// Token: 0x1700354E RID: 13646
			// (get) Token: 0x06009E11 RID: 40465 RVA: 0x00289CA8 File Offset: 0x00287EA8
			// (set) Token: 0x06009E12 RID: 40466 RVA: 0x00289CC6 File Offset: 0x00287EC6
			public unsafe static int _Vignette_Mask
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Mask, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Mask, (void*)(&value));
				}
			}

			// Token: 0x1700354F RID: 13647
			// (get) Token: 0x06009E13 RID: 40467 RVA: 0x00289CD8 File Offset: 0x00287ED8
			// (set) Token: 0x06009E14 RID: 40468 RVA: 0x00289CF6 File Offset: 0x00287EF6
			public unsafe static int _Vignette_Opacity
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Opacity, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(VignetteComponent.Uniforms.NativeFieldInfoPtr__Vignette_Opacity, (void*)(&value));
				}
			}

			// Token: 0x04006967 RID: 26983
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Color;

			// Token: 0x04006968 RID: 26984
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Center;

			// Token: 0x04006969 RID: 26985
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Settings;

			// Token: 0x0400696A RID: 26986
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Mask;

			// Token: 0x0400696B RID: 26987
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Opacity;
		}
	}
}
