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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005EE RID: 1518
	public class Vortex : ImageEffectBase
	{
		// Token: 0x06009DAD RID: 40365 RVA: 0x002860D0 File Offset: 0x002842D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, 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(Vortex.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009DAE RID: 40366 RVA: 0x00286144 File Offset: 0x00284344
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622269, XrefRangeEnd = 622270, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Vortex()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Vortex>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Vortex.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009DAF RID: 40367 RVA: 0x00286190 File Offset: 0x00284390
		// Note: this type is marked as 'beforefieldinit'.
		static Vortex()
		{
			Il2CppClassPointerStore<Vortex>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "Vortex");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Vortex>.NativeClassPtr);
			Vortex.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Vortex>.NativeClassPtr, "radius");
			Vortex.NativeFieldInfoPtr_angle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Vortex>.NativeClassPtr, "angle");
			Vortex.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Vortex>.NativeClassPtr, "center");
			Vortex.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Vortex>.NativeClassPtr, 100675437);
			Vortex.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Vortex>.NativeClassPtr, 100675438);
		}

		// Token: 0x06009DB0 RID: 40368 RVA: 0x0027BA8C File Offset: 0x00279C8C
		public Vortex(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700358A RID: 13706
		// (get) Token: 0x06009DB1 RID: 40369 RVA: 0x00286224 File Offset: 0x00284424
		// (set) Token: 0x06009DB2 RID: 40370 RVA: 0x0028624C File Offset: 0x0028444C
		public unsafe Vector2 radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x1700358B RID: 13707
		// (get) Token: 0x06009DB3 RID: 40371 RVA: 0x00286270 File Offset: 0x00284470
		// (set) Token: 0x06009DB4 RID: 40372 RVA: 0x00286298 File Offset: 0x00284498
		public unsafe float angle
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_angle);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_angle)) = value;
			}
		}

		// Token: 0x1700358C RID: 13708
		// (get) Token: 0x06009DB5 RID: 40373 RVA: 0x002862BC File Offset: 0x002844BC
		// (set) Token: 0x06009DB6 RID: 40374 RVA: 0x002862E4 File Offset: 0x002844E4
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Vortex.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x040069B8 RID: 27064
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x040069B9 RID: 27065
		private static readonly IntPtr NativeFieldInfoPtr_angle;

		// Token: 0x040069BA RID: 27066
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x040069BB RID: 27067
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040069BC RID: 27068
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
