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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005D0 RID: 1488
	public class Fisheye : PostEffectsBase
	{
		// Token: 0x06009C0E RID: 39950 RVA: 0x0027FC1C File Offset: 0x0027DE1C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620671, XrefRangeEnd = 620675, 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: 0x06009C0F RID: 39951 RVA: 0x0027FC78 File Offset: 0x0027DE78
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620675, XrefRangeEnd = 620683, 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: 0x06009C10 RID: 39952 RVA: 0x0027FCEC File Offset: 0x0027DEEC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620683, XrefRangeEnd = 620684, 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: 0x06009C11 RID: 39953 RVA: 0x0027FD38 File Offset: 0x0027DF38
		// 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, 100675339);
			Fisheye.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, 100675340);
			Fisheye.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Fisheye>.NativeClassPtr, 100675341);
		}

		// Token: 0x06009C12 RID: 39954 RVA: 0x00275EC4 File Offset: 0x002740C4
		public Fisheye(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170034FD RID: 13565
		// (get) Token: 0x06009C13 RID: 39955 RVA: 0x0027FDF4 File Offset: 0x0027DFF4
		// (set) Token: 0x06009C14 RID: 39956 RVA: 0x0027FE1C File Offset: 0x0027E01C
		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: 0x170034FE RID: 13566
		// (get) Token: 0x06009C15 RID: 39957 RVA: 0x0027FE40 File Offset: 0x0027E040
		// (set) Token: 0x06009C16 RID: 39958 RVA: 0x0027FE68 File Offset: 0x0027E068
		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: 0x170034FF RID: 13567
		// (get) Token: 0x06009C17 RID: 39959 RVA: 0x0027FE8C File Offset: 0x0027E08C
		// (set) Token: 0x06009C18 RID: 39960 RVA: 0x0027FEC0 File Offset: 0x0027E0C0
		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: 0x17003500 RID: 13568
		// (get) Token: 0x06009C19 RID: 39961 RVA: 0x0027FEE8 File Offset: 0x0027E0E8
		// (set) Token: 0x06009C1A RID: 39962 RVA: 0x0027FF1C File Offset: 0x0027E11C
		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: 0x040068A2 RID: 26786
		private static readonly IntPtr NativeFieldInfoPtr_strengthX;

		// Token: 0x040068A3 RID: 26787
		private static readonly IntPtr NativeFieldInfoPtr_strengthY;

		// Token: 0x040068A4 RID: 26788
		private static readonly IntPtr NativeFieldInfoPtr_fishEyeShader;

		// Token: 0x040068A5 RID: 26789
		private static readonly IntPtr NativeFieldInfoPtr_fisheyeMaterial;

		// Token: 0x040068A6 RID: 26790
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x040068A7 RID: 26791
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040068A8 RID: 26792
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
