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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000543 RID: 1347
	public sealed class VignetteComponent : PostProcessingComponentRenderTexture<VignetteModel>
	{
		// Token: 0x170032AF RID: 12975
		// (get) Token: 0x060095B1 RID: 38321 RVA: 0x00266CDC File Offset: 0x00264EDC
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616352, XrefRangeEnd = 616353, 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: 0x060095B2 RID: 38322 RVA: 0x00266D2C File Offset: 0x00264F2C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616353, XrefRangeEnd = 616373, 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: 0x060095B3 RID: 38323 RVA: 0x00266D88 File Offset: 0x00264F88
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 616376, RefRangeEnd = 616377, XrefRangeStart = 616373, XrefRangeEnd = 616376, 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: 0x060095B4 RID: 38324 RVA: 0x00266DD4 File Offset: 0x00264FD4
		// 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, 100674939);
			VignetteComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, 100674940);
			VignetteComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteComponent>.NativeClassPtr, 100674941);
		}

		// Token: 0x060095B5 RID: 38325 RVA: 0x00266E40 File Offset: 0x00265040
		public VignetteComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040063BB RID: 25531
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x040063BC RID: 25532
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x040063BD RID: 25533
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000544 RID: 1348
		public static class Uniforms : Object
		{
			// Token: 0x060095B6 RID: 38326 RVA: 0x00266E4C File Offset: 0x0026504C
			// 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: 0x060095B7 RID: 38327 RVA: 0x0000A688 File Offset: 0x00008888
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x170032B0 RID: 12976
			// (get) Token: 0x060095B8 RID: 38328 RVA: 0x00266EDC File Offset: 0x002650DC
			// (set) Token: 0x060095B9 RID: 38329 RVA: 0x00266EFA File Offset: 0x002650FA
			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: 0x170032B1 RID: 12977
			// (get) Token: 0x060095BA RID: 38330 RVA: 0x00266F0C File Offset: 0x0026510C
			// (set) Token: 0x060095BB RID: 38331 RVA: 0x00266F2A File Offset: 0x0026512A
			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: 0x170032B2 RID: 12978
			// (get) Token: 0x060095BC RID: 38332 RVA: 0x00266F3C File Offset: 0x0026513C
			// (set) Token: 0x060095BD RID: 38333 RVA: 0x00266F5A File Offset: 0x0026515A
			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: 0x170032B3 RID: 12979
			// (get) Token: 0x060095BE RID: 38334 RVA: 0x00266F6C File Offset: 0x0026516C
			// (set) Token: 0x060095BF RID: 38335 RVA: 0x00266F8A File Offset: 0x0026518A
			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: 0x170032B4 RID: 12980
			// (get) Token: 0x060095C0 RID: 38336 RVA: 0x00266F9C File Offset: 0x0026519C
			// (set) Token: 0x060095C1 RID: 38337 RVA: 0x00266FBA File Offset: 0x002651BA
			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: 0x040063BE RID: 25534
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Color;

			// Token: 0x040063BF RID: 25535
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Center;

			// Token: 0x040063C0 RID: 25536
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Settings;

			// Token: 0x040063C1 RID: 25537
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Mask;

			// Token: 0x040063C2 RID: 25538
			private static readonly IntPtr NativeFieldInfoPtr__Vignette_Opacity;
		}
	}
}
