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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005C5 RID: 1477
	public class CreaseShading : PostEffectsBase
	{
		// Token: 0x06009B34 RID: 39732 RVA: 0x0027C90C File Offset: 0x0027AB0C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619902, XrefRangeEnd = 619910, 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: 0x06009B35 RID: 39733 RVA: 0x0027C968 File Offset: 0x0027AB68
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619910, XrefRangeEnd = 619946, 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: 0x06009B36 RID: 39734 RVA: 0x0027C9DC File Offset: 0x0027ABDC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619946, XrefRangeEnd = 619947, 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: 0x06009B37 RID: 39735 RVA: 0x0027CA28 File Offset: 0x0027AC28
		// 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, 100675304);
			CreaseShading.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, 100675305);
			CreaseShading.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<CreaseShading>.NativeClassPtr, 100675306);
		}

		// Token: 0x06009B38 RID: 39736 RVA: 0x00275EC4 File Offset: 0x002740C4
		public CreaseShading(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170034A5 RID: 13477
		// (get) Token: 0x06009B39 RID: 39737 RVA: 0x0027CB48 File Offset: 0x0027AD48
		// (set) Token: 0x06009B3A RID: 39738 RVA: 0x0027CB70 File Offset: 0x0027AD70
		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: 0x170034A6 RID: 13478
		// (get) Token: 0x06009B3B RID: 39739 RVA: 0x0027CB94 File Offset: 0x0027AD94
		// (set) Token: 0x06009B3C RID: 39740 RVA: 0x0027CBBC File Offset: 0x0027ADBC
		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: 0x170034A7 RID: 13479
		// (get) Token: 0x06009B3D RID: 39741 RVA: 0x0027CBE0 File Offset: 0x0027ADE0
		// (set) Token: 0x06009B3E RID: 39742 RVA: 0x0027CC08 File Offset: 0x0027AE08
		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: 0x170034A8 RID: 13480
		// (get) Token: 0x06009B3F RID: 39743 RVA: 0x0027CC2C File Offset: 0x0027AE2C
		// (set) Token: 0x06009B40 RID: 39744 RVA: 0x0027CC60 File Offset: 0x0027AE60
		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: 0x170034A9 RID: 13481
		// (get) Token: 0x06009B41 RID: 39745 RVA: 0x0027CC88 File Offset: 0x0027AE88
		// (set) Token: 0x06009B42 RID: 39746 RVA: 0x0027CCBC File Offset: 0x0027AEBC
		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: 0x170034AA RID: 13482
		// (get) Token: 0x06009B43 RID: 39747 RVA: 0x0027CCE4 File Offset: 0x0027AEE4
		// (set) Token: 0x06009B44 RID: 39748 RVA: 0x0027CD18 File Offset: 0x0027AF18
		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: 0x170034AB RID: 13483
		// (get) Token: 0x06009B45 RID: 39749 RVA: 0x0027CD40 File Offset: 0x0027AF40
		// (set) Token: 0x06009B46 RID: 39750 RVA: 0x0027CD74 File Offset: 0x0027AF74
		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: 0x170034AC RID: 13484
		// (get) Token: 0x06009B47 RID: 39751 RVA: 0x0027CD9C File Offset: 0x0027AF9C
		// (set) Token: 0x06009B48 RID: 39752 RVA: 0x0027CDD0 File Offset: 0x0027AFD0
		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: 0x170034AD RID: 13485
		// (get) Token: 0x06009B49 RID: 39753 RVA: 0x0027CDF8 File Offset: 0x0027AFF8
		// (set) Token: 0x06009B4A RID: 39754 RVA: 0x0027CE2C File Offset: 0x0027B02C
		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: 0x0400680C RID: 26636
		private static readonly IntPtr NativeFieldInfoPtr_intensity;

		// Token: 0x0400680D RID: 26637
		private static readonly IntPtr NativeFieldInfoPtr_softness;

		// Token: 0x0400680E RID: 26638
		private static readonly IntPtr NativeFieldInfoPtr_spread;

		// Token: 0x0400680F RID: 26639
		private static readonly IntPtr NativeFieldInfoPtr_blurShader;

		// Token: 0x04006810 RID: 26640
		private static readonly IntPtr NativeFieldInfoPtr_blurMaterial;

		// Token: 0x04006811 RID: 26641
		private static readonly IntPtr NativeFieldInfoPtr_depthFetchShader;

		// Token: 0x04006812 RID: 26642
		private static readonly IntPtr NativeFieldInfoPtr_depthFetchMaterial;

		// Token: 0x04006813 RID: 26643
		private static readonly IntPtr NativeFieldInfoPtr_creaseApplyShader;

		// Token: 0x04006814 RID: 26644
		private static readonly IntPtr NativeFieldInfoPtr_creaseApplyMaterial;

		// Token: 0x04006815 RID: 26645
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x04006816 RID: 26646
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006817 RID: 26647
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
