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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000628 RID: 1576
	public class Fisheye : PostEffectsBase
	{
		// Token: 0x0600A461 RID: 42081 RVA: 0x002A2958 File Offset: 0x002A0B58
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652973, XrefRangeEnd = 652977, 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), Fisheye.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x0600A462 RID: 42082 RVA: 0x002A29B4 File Offset: 0x002A0BB4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652977, XrefRangeEnd = 652985, 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(Fisheye.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A463 RID: 42083 RVA: 0x002A2A28 File Offset: 0x002A0C28
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652985, XrefRangeEnd = 652986, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Fisheye()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Fisheye>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Fisheye.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A464 RID: 42084 RVA: 0x002A2A74 File Offset: 0x002A0C74
		// Note: this type is marked as 'beforefieldinit'.
		static Fisheye()
		{
			Il2CppClassPointerStore<Fisheye>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "Fisheye");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Fisheye>.NativeClassPtr);
			Fisheye.NativeFieldInfoPtr_strengthX = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, "strengthX");
			Fisheye.NativeFieldInfoPtr_strengthY = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, "strengthY");
			Fisheye.NativeFieldInfoPtr_fishEyeShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, "fishEyeShader");
			Fisheye.NativeFieldInfoPtr_fisheyeMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, "fisheyeMaterial");
			Fisheye.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, 100676052);
			Fisheye.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, 100676053);
			Fisheye.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, 100676054);
		}

		// Token: 0x0600A465 RID: 42085 RVA: 0x00298C00 File Offset: 0x00296E00
		public Fisheye(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003798 RID: 14232
		// (get) Token: 0x0600A466 RID: 42086 RVA: 0x002A2B30 File Offset: 0x002A0D30
		// (set) Token: 0x0600A467 RID: 42087 RVA: 0x002A2B58 File Offset: 0x002A0D58
		public unsafe float strengthX
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_strengthX);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_strengthX)) = value;
			}
		}

		// Token: 0x17003799 RID: 14233
		// (get) Token: 0x0600A468 RID: 42088 RVA: 0x002A2B7C File Offset: 0x002A0D7C
		// (set) Token: 0x0600A469 RID: 42089 RVA: 0x002A2BA4 File Offset: 0x002A0DA4
		public unsafe float strengthY
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_strengthY);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_strengthY)) = value;
			}
		}

		// Token: 0x1700379A RID: 14234
		// (get) Token: 0x0600A46A RID: 42090 RVA: 0x002A2BC8 File Offset: 0x002A0DC8
		// (set) Token: 0x0600A46B RID: 42091 RVA: 0x002A2BFC File Offset: 0x002A0DFC
		public unsafe Shader fishEyeShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_fishEyeShader);
				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(Fisheye.NativeFieldInfoPtr_fishEyeShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700379B RID: 14235
		// (get) Token: 0x0600A46C RID: 42092 RVA: 0x002A2C24 File Offset: 0x002A0E24
		// (set) Token: 0x0600A46D RID: 42093 RVA: 0x002A2C58 File Offset: 0x002A0E58
		public unsafe Material fisheyeMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Fisheye.NativeFieldInfoPtr_fisheyeMaterial);
				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(Fisheye.NativeFieldInfoPtr_fisheyeMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006E4B RID: 28235
		private static readonly IntPtr NativeFieldInfoPtr_strengthX;

		// Token: 0x04006E4C RID: 28236
		private static readonly IntPtr NativeFieldInfoPtr_strengthY;

		// Token: 0x04006E4D RID: 28237
		private static readonly IntPtr NativeFieldInfoPtr_fishEyeShader;

		// Token: 0x04006E4E RID: 28238
		private static readonly IntPtr NativeFieldInfoPtr_fisheyeMaterial;

		// Token: 0x04006E4F RID: 28239
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x04006E50 RID: 28240
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006E51 RID: 28241
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
