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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200062B RID: 1579
	public class ImageEffectBase : MonoBehaviour
	{
		// Token: 0x0600A48D RID: 42125 RVA: 0x002A3370 File Offset: 0x002A1570
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 653074, RefRangeEnd = 653075, XrefRangeStart = 653067, XrefRangeEnd = 653074, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ImageEffectBase.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x170037A9 RID: 14249
		// (get) Token: 0x0600A48E RID: 42126 RVA: 0x002A33C0 File Offset: 0x002A15C0
		public unsafe Material material
		{
			[CallerCount(11)]
			[CachedScanResults(RefRangeStart = 653085, RefRangeEnd = 653096, XrefRangeStart = 653075, XrefRangeEnd = 653085, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffectBase.NativeMethodInfoPtr_get_material_Protected_get_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new Material(intPtr3) : null;
			}
		}

		// Token: 0x0600A48F RID: 42127 RVA: 0x002A3418 File Offset: 0x002A1618
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 653103, RefRangeEnd = 653104, XrefRangeStart = 653096, XrefRangeEnd = 653103, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ImageEffectBase.NativeMethodInfoPtr_OnDisable_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A490 RID: 42128 RVA: 0x002A3468 File Offset: 0x002A1668
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ImageEffectBase()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffectBase.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A491 RID: 42129 RVA: 0x002A34B4 File Offset: 0x002A16B4
		// Note: this type is marked as 'beforefieldinit'.
		static ImageEffectBase()
		{
			Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "ImageEffectBase");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr);
			ImageEffectBase.NativeFieldInfoPtr_shader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, "shader");
			ImageEffectBase.NativeFieldInfoPtr_m_Material = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, "m_Material");
			ImageEffectBase.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, 100676060);
			ImageEffectBase.NativeMethodInfoPtr_get_material_Protected_get_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, 100676061);
			ImageEffectBase.NativeMethodInfoPtr_OnDisable_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, 100676062);
			ImageEffectBase.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffectBase>.NativeClassPtr, 100676063);
		}

		// Token: 0x0600A492 RID: 42130 RVA: 0x0000351C File Offset: 0x0000171C
		public ImageEffectBase(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170037A7 RID: 14247
		// (get) Token: 0x0600A493 RID: 42131 RVA: 0x002A355C File Offset: 0x002A175C
		// (set) Token: 0x0600A494 RID: 42132 RVA: 0x002A3590 File Offset: 0x002A1790
		public unsafe Shader shader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ImageEffectBase.NativeFieldInfoPtr_shader);
				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(ImageEffectBase.NativeFieldInfoPtr_shader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170037A8 RID: 14248
		// (get) Token: 0x0600A495 RID: 42133 RVA: 0x002A35B8 File Offset: 0x002A17B8
		// (set) Token: 0x0600A496 RID: 42134 RVA: 0x002A35EC File Offset: 0x002A17EC
		public unsafe Material m_Material
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ImageEffectBase.NativeFieldInfoPtr_m_Material);
				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(ImageEffectBase.NativeFieldInfoPtr_m_Material), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006E62 RID: 28258
		private static readonly IntPtr NativeFieldInfoPtr_shader;

		// Token: 0x04006E63 RID: 28259
		private static readonly IntPtr NativeFieldInfoPtr_m_Material;

		// Token: 0x04006E64 RID: 28260
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0;

		// Token: 0x04006E65 RID: 28261
		private static readonly IntPtr NativeMethodInfoPtr_get_material_Protected_get_Material_0;

		// Token: 0x04006E66 RID: 28262
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Protected_Virtual_New_Void_0;

		// Token: 0x04006E67 RID: 28263
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
