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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005E1 RID: 1505
	public class SunShafts : PostEffectsBase
	{
		// Token: 0x06009D21 RID: 40225 RVA: 0x00284148 File Offset: 0x00282348
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621822, XrefRangeEnd = 621828, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override bool CheckResources()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), SunShafts.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009D22 RID: 40226 RVA: 0x002841A4 File Offset: 0x002823A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621828, XrefRangeEnd = 621916, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SunShafts.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009D23 RID: 40227 RVA: 0x00284218 File Offset: 0x00282418
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621916, XrefRangeEnd = 621919, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe SunShafts()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<SunShafts>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SunShafts.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009D24 RID: 40228 RVA: 0x00284264 File Offset: 0x00282464
		// Note: this type is marked as 'beforefieldinit'.
		static SunShafts()
		{
			Il2CppClassPointerStore<SunShafts>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "SunShafts");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SunShafts>.NativeClassPtr);
			SunShafts.NativeFieldInfoPtr_resolution = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "resolution");
			SunShafts.NativeFieldInfoPtr_screenBlendMode = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "screenBlendMode");
			SunShafts.NativeFieldInfoPtr_sunTransform = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunTransform");
			SunShafts.NativeFieldInfoPtr_radialBlurIterations = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "radialBlurIterations");
			SunShafts.NativeFieldInfoPtr_sunColor = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunColor");
			SunShafts.NativeFieldInfoPtr_sunThreshold = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunThreshold");
			SunShafts.NativeFieldInfoPtr_sunShaftBlurRadius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunShaftBlurRadius");
			SunShafts.NativeFieldInfoPtr_sunShaftIntensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunShaftIntensity");
			SunShafts.NativeFieldInfoPtr_maxRadius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "maxRadius");
			SunShafts.NativeFieldInfoPtr_useDepthTexture = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "useDepthTexture");
			SunShafts.NativeFieldInfoPtr_sunShaftsShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunShaftsShader");
			SunShafts.NativeFieldInfoPtr_sunShaftsMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "sunShaftsMaterial");
			SunShafts.NativeFieldInfoPtr_simpleClearShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "simpleClearShader");
			SunShafts.NativeFieldInfoPtr_simpleClearMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, "simpleClearMaterial");
			SunShafts.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, 100675414);
			SunShafts.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, 100675415);
			SunShafts.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SunShafts>.NativeClassPtr, 100675416);
		}

		// Token: 0x06009D25 RID: 40229 RVA: 0x00275EC4 File Offset: 0x002740C4
		public SunShafts(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003555 RID: 13653
		// (get) Token: 0x06009D26 RID: 40230 RVA: 0x002843E8 File Offset: 0x002825E8
		// (set) Token: 0x06009D27 RID: 40231 RVA: 0x00284410 File Offset: 0x00282610
		public unsafe SunShafts.SunShaftsResolution resolution
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_resolution);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_resolution)) = value;
			}
		}

		// Token: 0x17003556 RID: 13654
		// (get) Token: 0x06009D28 RID: 40232 RVA: 0x00284434 File Offset: 0x00282634
		// (set) Token: 0x06009D29 RID: 40233 RVA: 0x0028445C File Offset: 0x0028265C
		public unsafe SunShafts.ShaftsScreenBlendMode screenBlendMode
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_screenBlendMode);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_screenBlendMode)) = value;
			}
		}

		// Token: 0x17003557 RID: 13655
		// (get) Token: 0x06009D2A RID: 40234 RVA: 0x00284480 File Offset: 0x00282680
		// (set) Token: 0x06009D2B RID: 40235 RVA: 0x002844B4 File Offset: 0x002826B4
		public unsafe Transform sunTransform
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunTransform);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Transform(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunTransform), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003558 RID: 13656
		// (get) Token: 0x06009D2C RID: 40236 RVA: 0x002844DC File Offset: 0x002826DC
		// (set) Token: 0x06009D2D RID: 40237 RVA: 0x00284504 File Offset: 0x00282704
		public unsafe int radialBlurIterations
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_radialBlurIterations);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_radialBlurIterations)) = value;
			}
		}

		// Token: 0x17003559 RID: 13657
		// (get) Token: 0x06009D2E RID: 40238 RVA: 0x00284528 File Offset: 0x00282728
		// (set) Token: 0x06009D2F RID: 40239 RVA: 0x00284550 File Offset: 0x00282750
		public unsafe Color sunColor
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunColor);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunColor)) = value;
			}
		}

		// Token: 0x1700355A RID: 13658
		// (get) Token: 0x06009D30 RID: 40240 RVA: 0x00284574 File Offset: 0x00282774
		// (set) Token: 0x06009D31 RID: 40241 RVA: 0x0028459C File Offset: 0x0028279C
		public unsafe Color sunThreshold
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunThreshold);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunThreshold)) = value;
			}
		}

		// Token: 0x1700355B RID: 13659
		// (get) Token: 0x06009D32 RID: 40242 RVA: 0x002845C0 File Offset: 0x002827C0
		// (set) Token: 0x06009D33 RID: 40243 RVA: 0x002845E8 File Offset: 0x002827E8
		public unsafe float sunShaftBlurRadius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftBlurRadius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftBlurRadius)) = value;
			}
		}

		// Token: 0x1700355C RID: 13660
		// (get) Token: 0x06009D34 RID: 40244 RVA: 0x0028460C File Offset: 0x0028280C
		// (set) Token: 0x06009D35 RID: 40245 RVA: 0x00284634 File Offset: 0x00282834
		public unsafe float sunShaftIntensity
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftIntensity);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftIntensity)) = value;
			}
		}

		// Token: 0x1700355D RID: 13661
		// (get) Token: 0x06009D36 RID: 40246 RVA: 0x00284658 File Offset: 0x00282858
		// (set) Token: 0x06009D37 RID: 40247 RVA: 0x00284680 File Offset: 0x00282880
		public unsafe float maxRadius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_maxRadius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_maxRadius)) = value;
			}
		}

		// Token: 0x1700355E RID: 13662
		// (get) Token: 0x06009D38 RID: 40248 RVA: 0x002846A4 File Offset: 0x002828A4
		// (set) Token: 0x06009D39 RID: 40249 RVA: 0x002846CC File Offset: 0x002828CC
		public unsafe bool useDepthTexture
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_useDepthTexture);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_useDepthTexture)) = value;
			}
		}

		// Token: 0x1700355F RID: 13663
		// (get) Token: 0x06009D3A RID: 40250 RVA: 0x002846F0 File Offset: 0x002828F0
		// (set) Token: 0x06009D3B RID: 40251 RVA: 0x00284724 File Offset: 0x00282924
		public unsafe Shader sunShaftsShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftsShader);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Shader(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftsShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003560 RID: 13664
		// (get) Token: 0x06009D3C RID: 40252 RVA: 0x0028474C File Offset: 0x0028294C
		// (set) Token: 0x06009D3D RID: 40253 RVA: 0x00284780 File Offset: 0x00282980
		public unsafe Material sunShaftsMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftsMaterial);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Material(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_sunShaftsMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003561 RID: 13665
		// (get) Token: 0x06009D3E RID: 40254 RVA: 0x002847A8 File Offset: 0x002829A8
		// (set) Token: 0x06009D3F RID: 40255 RVA: 0x002847DC File Offset: 0x002829DC
		public unsafe Shader simpleClearShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_simpleClearShader);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Shader(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_simpleClearShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003562 RID: 13666
		// (get) Token: 0x06009D40 RID: 40256 RVA: 0x00284804 File Offset: 0x00282A04
		// (set) Token: 0x06009D41 RID: 40257 RVA: 0x00284838 File Offset: 0x00282A38
		public unsafe Material simpleClearMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_simpleClearMaterial);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Material(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SunShafts.NativeFieldInfoPtr_simpleClearMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400694B RID: 26955
		private static readonly IntPtr NativeFieldInfoPtr_resolution;

		// Token: 0x0400694C RID: 26956
		private static readonly IntPtr NativeFieldInfoPtr_screenBlendMode;

		// Token: 0x0400694D RID: 26957
		private static readonly IntPtr NativeFieldInfoPtr_sunTransform;

		// Token: 0x0400694E RID: 26958
		private static readonly IntPtr NativeFieldInfoPtr_radialBlurIterations;

		// Token: 0x0400694F RID: 26959
		private static readonly IntPtr NativeFieldInfoPtr_sunColor;

		// Token: 0x04006950 RID: 26960
		private static readonly IntPtr NativeFieldInfoPtr_sunThreshold;

		// Token: 0x04006951 RID: 26961
		private static readonly IntPtr NativeFieldInfoPtr_sunShaftBlurRadius;

		// Token: 0x04006952 RID: 26962
		private static readonly IntPtr NativeFieldInfoPtr_sunShaftIntensity;

		// Token: 0x04006953 RID: 26963
		private static readonly IntPtr NativeFieldInfoPtr_maxRadius;

		// Token: 0x04006954 RID: 26964
		private static readonly IntPtr NativeFieldInfoPtr_useDepthTexture;

		// Token: 0x04006955 RID: 26965
		private static readonly IntPtr NativeFieldInfoPtr_sunShaftsShader;

		// Token: 0x04006956 RID: 26966
		private static readonly IntPtr NativeFieldInfoPtr_sunShaftsMaterial;

		// Token: 0x04006957 RID: 26967
		private static readonly IntPtr NativeFieldInfoPtr_simpleClearShader;

		// Token: 0x04006958 RID: 26968
		private static readonly IntPtr NativeFieldInfoPtr_simpleClearMaterial;

		// Token: 0x04006959 RID: 26969
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x0400695A RID: 26970
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x0400695B RID: 26971
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020005E2 RID: 1506
		public enum SunShaftsResolution
		{
			// Token: 0x0400695D RID: 26973
			Low,
			// Token: 0x0400695E RID: 26974
			Normal,
			// Token: 0x0400695F RID: 26975
			High
		}

		// Token: 0x020005E3 RID: 1507
		public enum ShaftsScreenBlendMode
		{
			// Token: 0x04006961 RID: 26977
			Screen,
			// Token: 0x04006962 RID: 26978
			Add
		}
	}
}
