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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200061D RID: 1565
	public class CreaseShading : PostEffectsBase
	{
		// Token: 0x0600A387 RID: 41863 RVA: 0x0029F648 File Offset: 0x0029D848
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652204, XrefRangeEnd = 652212, 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), CreaseShading.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x0600A388 RID: 41864 RVA: 0x0029F6A4 File Offset: 0x0029D8A4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652212, XrefRangeEnd = 652248, 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(CreaseShading.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A389 RID: 41865 RVA: 0x0029F718 File Offset: 0x0029D918
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652248, XrefRangeEnd = 652249, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe CreaseShading()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(CreaseShading.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A38A RID: 41866 RVA: 0x0029F764 File Offset: 0x0029D964
		// Note: this type is marked as 'beforefieldinit'.
		static CreaseShading()
		{
			Il2CppClassPointerStore<CreaseShading>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "CreaseShading");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr);
			CreaseShading.NativeFieldInfoPtr_intensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "intensity");
			CreaseShading.NativeFieldInfoPtr_softness = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "softness");
			CreaseShading.NativeFieldInfoPtr_spread = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "spread");
			CreaseShading.NativeFieldInfoPtr_blurShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "blurShader");
			CreaseShading.NativeFieldInfoPtr_blurMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "blurMaterial");
			CreaseShading.NativeFieldInfoPtr_depthFetchShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "depthFetchShader");
			CreaseShading.NativeFieldInfoPtr_depthFetchMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "depthFetchMaterial");
			CreaseShading.NativeFieldInfoPtr_creaseApplyShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "creaseApplyShader");
			CreaseShading.NativeFieldInfoPtr_creaseApplyMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, "creaseApplyMaterial");
			CreaseShading.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, 100676017);
			CreaseShading.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, 100676018);
			CreaseShading.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, 100676019);
		}

		// Token: 0x0600A38B RID: 41867 RVA: 0x00298C00 File Offset: 0x00296E00
		public CreaseShading(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003740 RID: 14144
		// (get) Token: 0x0600A38C RID: 41868 RVA: 0x0029F884 File Offset: 0x0029DA84
		// (set) Token: 0x0600A38D RID: 41869 RVA: 0x0029F8AC File Offset: 0x0029DAAC
		public unsafe float intensity
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_intensity);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_intensity)) = value;
			}
		}

		// Token: 0x17003741 RID: 14145
		// (get) Token: 0x0600A38E RID: 41870 RVA: 0x0029F8D0 File Offset: 0x0029DAD0
		// (set) Token: 0x0600A38F RID: 41871 RVA: 0x0029F8F8 File Offset: 0x0029DAF8
		public unsafe int softness
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_softness);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_softness)) = value;
			}
		}

		// Token: 0x17003742 RID: 14146
		// (get) Token: 0x0600A390 RID: 41872 RVA: 0x0029F91C File Offset: 0x0029DB1C
		// (set) Token: 0x0600A391 RID: 41873 RVA: 0x0029F944 File Offset: 0x0029DB44
		public unsafe float spread
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_spread);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_spread)) = value;
			}
		}

		// Token: 0x17003743 RID: 14147
		// (get) Token: 0x0600A392 RID: 41874 RVA: 0x0029F968 File Offset: 0x0029DB68
		// (set) Token: 0x0600A393 RID: 41875 RVA: 0x0029F99C File Offset: 0x0029DB9C
		public unsafe Shader blurShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_blurShader);
				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(CreaseShading.NativeFieldInfoPtr_blurShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003744 RID: 14148
		// (get) Token: 0x0600A394 RID: 41876 RVA: 0x0029F9C4 File Offset: 0x0029DBC4
		// (set) Token: 0x0600A395 RID: 41877 RVA: 0x0029F9F8 File Offset: 0x0029DBF8
		public unsafe Material blurMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_blurMaterial);
				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(CreaseShading.NativeFieldInfoPtr_blurMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003745 RID: 14149
		// (get) Token: 0x0600A396 RID: 41878 RVA: 0x0029FA20 File Offset: 0x0029DC20
		// (set) Token: 0x0600A397 RID: 41879 RVA: 0x0029FA54 File Offset: 0x0029DC54
		public unsafe Shader depthFetchShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_depthFetchShader);
				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(CreaseShading.NativeFieldInfoPtr_depthFetchShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003746 RID: 14150
		// (get) Token: 0x0600A398 RID: 41880 RVA: 0x0029FA7C File Offset: 0x0029DC7C
		// (set) Token: 0x0600A399 RID: 41881 RVA: 0x0029FAB0 File Offset: 0x0029DCB0
		public unsafe Material depthFetchMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_depthFetchMaterial);
				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(CreaseShading.NativeFieldInfoPtr_depthFetchMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003747 RID: 14151
		// (get) Token: 0x0600A39A RID: 41882 RVA: 0x0029FAD8 File Offset: 0x0029DCD8
		// (set) Token: 0x0600A39B RID: 41883 RVA: 0x0029FB0C File Offset: 0x0029DD0C
		public unsafe Shader creaseApplyShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_creaseApplyShader);
				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(CreaseShading.NativeFieldInfoPtr_creaseApplyShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003748 RID: 14152
		// (get) Token: 0x0600A39C RID: 41884 RVA: 0x0029FB34 File Offset: 0x0029DD34
		// (set) Token: 0x0600A39D RID: 41885 RVA: 0x0029FB68 File Offset: 0x0029DD68
		public unsafe Material creaseApplyMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(CreaseShading.NativeFieldInfoPtr_creaseApplyMaterial);
				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(CreaseShading.NativeFieldInfoPtr_creaseApplyMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006DB5 RID: 28085
		private static readonly IntPtr NativeFieldInfoPtr_intensity;

		// Token: 0x04006DB6 RID: 28086
		private static readonly IntPtr NativeFieldInfoPtr_softness;

		// Token: 0x04006DB7 RID: 28087
		private static readonly IntPtr NativeFieldInfoPtr_spread;

		// Token: 0x04006DB8 RID: 28088
		private static readonly IntPtr NativeFieldInfoPtr_blurShader;

		// Token: 0x04006DB9 RID: 28089
		private static readonly IntPtr NativeFieldInfoPtr_blurMaterial;

		// Token: 0x04006DBA RID: 28090
		private static readonly IntPtr NativeFieldInfoPtr_depthFetchShader;

		// Token: 0x04006DBB RID: 28091
		private static readonly IntPtr NativeFieldInfoPtr_depthFetchMaterial;

		// Token: 0x04006DBC RID: 28092
		private static readonly IntPtr NativeFieldInfoPtr_creaseApplyShader;

		// Token: 0x04006DBD RID: 28093
		private static readonly IntPtr NativeFieldInfoPtr_creaseApplyMaterial;

		// Token: 0x04006DBE RID: 28094
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x04006DBF RID: 28095
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006DC0 RID: 28096
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
