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

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005D5 RID: 1493
	[Serializable]
	public class VignetteModel : PostProcessingModel
	{
		// Token: 0x170035AA RID: 13738
		// (get) Token: 0x06009F2B RID: 40747 RVA: 0x0028E4CC File Offset: 0x0028C6CC
		// (set) Token: 0x06009F2C RID: 40748 RVA: 0x0028E518 File Offset: 0x0028C718
		public unsafe VignetteModel.Settings settings
		{
			[CallerCount(0)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return new VignetteModel.Settings(intPtr);
			}
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648892, XrefRangeEnd = 648893, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			set
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(value));
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}
		}

		// Token: 0x06009F2D RID: 40749 RVA: 0x0028E578 File Offset: 0x0028C778
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648893, XrefRangeEnd = 648895, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Reset()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), VignetteModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009F2E RID: 40750 RVA: 0x0028E5C8 File Offset: 0x0028C7C8
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 648898, RefRangeEnd = 648899, XrefRangeStart = 648895, XrefRangeEnd = 648898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe VignetteModel()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteModel.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009F2F RID: 40751 RVA: 0x0028E614 File Offset: 0x0028C814
		// Note: this type is marked as 'beforefieldinit'.
		static VignetteModel()
		{
			Il2CppClassPointerStore<VignetteModel>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "VignetteModel");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr);
			VignetteModel.NativeFieldInfoPtr_m_Settings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, "m_Settings");
			VignetteModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, 100675750);
			VignetteModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, 100675751);
			VignetteModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, 100675752);
			VignetteModel.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, 100675753);
		}

		// Token: 0x06009F30 RID: 40752 RVA: 0x00289EDC File Offset: 0x002880DC
		public VignetteModel(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170035A9 RID: 13737
		// (get) Token: 0x06009F31 RID: 40753 RVA: 0x0028E6A8 File Offset: 0x0028C8A8
		// (set) Token: 0x06009F32 RID: 40754 RVA: 0x0028E6DA File Offset: 0x0028C8DA
		public VignetteModel.Settings m_Settings
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.NativeFieldInfoPtr_m_Settings);
				return new VignetteModel.Settings(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, intPtr));
			}
			set
			{
				cpblk(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.NativeFieldInfoPtr_m_Settings), IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtr(value)), IL2CPP.il2cpp_class_value_size(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, (UIntPtr)0));
			}
		}

		// Token: 0x04006AF0 RID: 27376
		private static readonly IntPtr NativeFieldInfoPtr_m_Settings;

		// Token: 0x04006AF1 RID: 27377
		private static readonly IntPtr NativeMethodInfoPtr_get_settings_Public_get_Settings_0;

		// Token: 0x04006AF2 RID: 27378
		private static readonly IntPtr NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0;

		// Token: 0x04006AF3 RID: 27379
		private static readonly IntPtr NativeMethodInfoPtr_Reset_Public_Virtual_Void_0;

		// Token: 0x04006AF4 RID: 27380
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020005D6 RID: 1494
		public enum Mode
		{
			// Token: 0x04006AF6 RID: 27382
			Classic,
			// Token: 0x04006AF7 RID: 27383
			Masked
		}

		// Token: 0x020005D7 RID: 1495
		[Serializable]
		public sealed class Settings : ValueType
		{
			// Token: 0x170035B4 RID: 13748
			// (get) Token: 0x06009F33 RID: 40755 RVA: 0x0028E710 File Offset: 0x0028C910
			public unsafe static VignetteModel.Settings defaultSettings
			{
				[CallerCount(2)]
				[CachedScanResults(RefRangeStart = 648890, RefRangeEnd = 648892, XrefRangeStart = 648888, XrefRangeEnd = 648890, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
				get
				{
					IntPtr* ptr = null;
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(VignetteModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0, 0, (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
					return new VignetteModel.Settings(intPtr);
				}
			}

			// Token: 0x06009F34 RID: 40756 RVA: 0x0028E74C File Offset: 0x0028C94C
			// Note: this type is marked as 'beforefieldinit'.
			static Settings()
			{
				Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<VignetteModel>.NativeClassPtr, "Settings");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr);
				VignetteModel.Settings.NativeFieldInfoPtr_mode = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "mode");
				VignetteModel.Settings.NativeFieldInfoPtr_color = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "color");
				VignetteModel.Settings.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "center");
				VignetteModel.Settings.NativeFieldInfoPtr_intensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "intensity");
				VignetteModel.Settings.NativeFieldInfoPtr_smoothness = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "smoothness");
				VignetteModel.Settings.NativeFieldInfoPtr_roundness = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "roundness");
				VignetteModel.Settings.NativeFieldInfoPtr_mask = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "mask");
				VignetteModel.Settings.NativeFieldInfoPtr_opacity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "opacity");
				VignetteModel.Settings.NativeFieldInfoPtr_rounded = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, "rounded");
				VignetteModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, 100675754);
			}

			// Token: 0x06009F35 RID: 40757 RVA: 0x001295E7 File Offset: 0x001277E7
			public Settings(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x06009F36 RID: 40758 RVA: 0x0028E840 File Offset: 0x0028CA40
			public unsafe Settings()
			{
				IntPtr intPtr = stackalloc byte[(UIntPtr)IL2CPP.il2cpp_class_value_size(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, (UIntPtr)0)];
				base..ctor(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<VignetteModel.Settings>.NativeClassPtr, intPtr));
			}

			// Token: 0x170035AB RID: 13739
			// (get) Token: 0x06009F37 RID: 40759 RVA: 0x0028E870 File Offset: 0x0028CA70
			// (set) Token: 0x06009F38 RID: 40760 RVA: 0x0028E898 File Offset: 0x0028CA98
			public unsafe VignetteModel.Mode mode
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_mode);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_mode)) = value;
				}
			}

			// Token: 0x170035AC RID: 13740
			// (get) Token: 0x06009F39 RID: 40761 RVA: 0x0028E8BC File Offset: 0x0028CABC
			// (set) Token: 0x06009F3A RID: 40762 RVA: 0x0028E8E4 File Offset: 0x0028CAE4
			public unsafe Color color
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_color);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_color)) = value;
				}
			}

			// Token: 0x170035AD RID: 13741
			// (get) Token: 0x06009F3B RID: 40763 RVA: 0x0028E908 File Offset: 0x0028CB08
			// (set) Token: 0x06009F3C RID: 40764 RVA: 0x0028E930 File Offset: 0x0028CB30
			public unsafe Vector2 center
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_center);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_center)) = value;
				}
			}

			// Token: 0x170035AE RID: 13742
			// (get) Token: 0x06009F3D RID: 40765 RVA: 0x0028E954 File Offset: 0x0028CB54
			// (set) Token: 0x06009F3E RID: 40766 RVA: 0x0028E97C File Offset: 0x0028CB7C
			public unsafe float intensity
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_intensity);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_intensity)) = value;
				}
			}

			// Token: 0x170035AF RID: 13743
			// (get) Token: 0x06009F3F RID: 40767 RVA: 0x0028E9A0 File Offset: 0x0028CBA0
			// (set) Token: 0x06009F40 RID: 40768 RVA: 0x0028E9C8 File Offset: 0x0028CBC8
			public unsafe float smoothness
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_smoothness);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_smoothness)) = value;
				}
			}

			// Token: 0x170035B0 RID: 13744
			// (get) Token: 0x06009F41 RID: 40769 RVA: 0x0028E9EC File Offset: 0x0028CBEC
			// (set) Token: 0x06009F42 RID: 40770 RVA: 0x0028EA14 File Offset: 0x0028CC14
			public unsafe float roundness
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_roundness);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_roundness)) = value;
				}
			}

			// Token: 0x170035B1 RID: 13745
			// (get) Token: 0x06009F43 RID: 40771 RVA: 0x0028EA38 File Offset: 0x0028CC38
			// (set) Token: 0x06009F44 RID: 40772 RVA: 0x0028EA6C File Offset: 0x0028CC6C
			public unsafe Texture mask
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_mask);
					IntPtr intPtr2 = *intPtr;
					return (intPtr2 != 0) ? new Texture(intPtr2) : null;
				}
				set
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
					IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_mask), IL2CPP.Il2CppObjectBaseToPtr(value));
				}
			}

			// Token: 0x170035B2 RID: 13746
			// (get) Token: 0x06009F45 RID: 40773 RVA: 0x0028EA94 File Offset: 0x0028CC94
			// (set) Token: 0x06009F46 RID: 40774 RVA: 0x0028EABC File Offset: 0x0028CCBC
			public unsafe float opacity
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_opacity);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_opacity)) = value;
				}
			}

			// Token: 0x170035B3 RID: 13747
			// (get) Token: 0x06009F47 RID: 40775 RVA: 0x0028EAE0 File Offset: 0x0028CCE0
			// (set) Token: 0x06009F48 RID: 40776 RVA: 0x0028EB08 File Offset: 0x0028CD08
			public unsafe bool rounded
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_rounded);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(VignetteModel.Settings.NativeFieldInfoPtr_rounded)) = value;
				}
			}

			// Token: 0x04006AF8 RID: 27384
			private static readonly IntPtr NativeFieldInfoPtr_mode;

			// Token: 0x04006AF9 RID: 27385
			private static readonly IntPtr NativeFieldInfoPtr_color;

			// Token: 0x04006AFA RID: 27386
			private static readonly IntPtr NativeFieldInfoPtr_center;

			// Token: 0x04006AFB RID: 27387
			private static readonly IntPtr NativeFieldInfoPtr_intensity;

			// Token: 0x04006AFC RID: 27388
			private static readonly IntPtr NativeFieldInfoPtr_smoothness;

			// Token: 0x04006AFD RID: 27389
			private static readonly IntPtr NativeFieldInfoPtr_roundness;

			// Token: 0x04006AFE RID: 27390
			private static readonly IntPtr NativeFieldInfoPtr_mask;

			// Token: 0x04006AFF RID: 27391
			private static readonly IntPtr NativeFieldInfoPtr_opacity;

			// Token: 0x04006B00 RID: 27392
			private static readonly IntPtr NativeFieldInfoPtr_rounded;

			// Token: 0x04006B01 RID: 27393
			private static readonly IntPtr NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0;
		}
	}
}
