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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000646 RID: 1606
	public class Vortex : ImageEffectBase
	{
		// Token: 0x0600A600 RID: 42496 RVA: 0x002A8E0C File Offset: 0x002A700C
		[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: 0x0600A601 RID: 42497 RVA: 0x002A8E80 File Offset: 0x002A7080
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654571, XrefRangeEnd = 654572, 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: 0x0600A602 RID: 42498 RVA: 0x002A8ECC File Offset: 0x002A70CC
		// 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, 100676150);
			Vortex.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Vortex>.NativeClassPtr, 100676151);
		}

		// Token: 0x0600A603 RID: 42499 RVA: 0x0029E7C8 File Offset: 0x0029C9C8
		public Vortex(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003825 RID: 14373
		// (get) Token: 0x0600A604 RID: 42500 RVA: 0x002A8F60 File Offset: 0x002A7160
		// (set) Token: 0x0600A605 RID: 42501 RVA: 0x002A8F88 File Offset: 0x002A7188
		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: 0x17003826 RID: 14374
		// (get) Token: 0x0600A606 RID: 42502 RVA: 0x002A8FAC File Offset: 0x002A71AC
		// (set) Token: 0x0600A607 RID: 42503 RVA: 0x002A8FD4 File Offset: 0x002A71D4
		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: 0x17003827 RID: 14375
		// (get) Token: 0x0600A608 RID: 42504 RVA: 0x002A8FF8 File Offset: 0x002A71F8
		// (set) Token: 0x0600A609 RID: 42505 RVA: 0x002A9020 File Offset: 0x002A7220
		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: 0x04006F61 RID: 28513
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006F62 RID: 28514
		private static readonly IntPtr NativeFieldInfoPtr_angle;

		// Token: 0x04006F63 RID: 28515
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006F64 RID: 28516
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006F65 RID: 28517
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
