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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200062D RID: 1581
	public class MotionBlur : ImageEffectBase
	{
		// Token: 0x0600A49D RID: 42141 RVA: 0x002A3874 File Offset: 0x002A1A74
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653134, XrefRangeEnd = 653135, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override 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), MotionBlur.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A49E RID: 42142 RVA: 0x002A38C4 File Offset: 0x002A1AC4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653135, XrefRangeEnd = 653140, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override 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), MotionBlur.NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A49F RID: 42143 RVA: 0x002A3914 File Offset: 0x002A1B14
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653140, XrefRangeEnd = 653180, 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(MotionBlur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A4A0 RID: 42144 RVA: 0x002A3988 File Offset: 0x002A1B88
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653180, XrefRangeEnd = 653181, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe MotionBlur()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MotionBlur.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A4A1 RID: 42145 RVA: 0x002A39D4 File Offset: 0x002A1BD4
		// Note: this type is marked as 'beforefieldinit'.
		static MotionBlur()
		{
			Il2CppClassPointerStore<MotionBlur>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "MotionBlur");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr);
			MotionBlur.NativeFieldInfoPtr_blurAmount = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "blurAmount");
			MotionBlur.NativeFieldInfoPtr_extraBlur = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "extraBlur");
			MotionBlur.NativeFieldInfoPtr_accumTexture = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "accumTexture");
			MotionBlur.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100676068);
			MotionBlur.NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100676069);
			MotionBlur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100676070);
			MotionBlur.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100676071);
		}

		// Token: 0x0600A4A2 RID: 42146 RVA: 0x0029E7C8 File Offset: 0x0029C9C8
		public MotionBlur(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170037AA RID: 14250
		// (get) Token: 0x0600A4A3 RID: 42147 RVA: 0x002A3A90 File Offset: 0x002A1C90
		// (set) Token: 0x0600A4A4 RID: 42148 RVA: 0x002A3AB8 File Offset: 0x002A1CB8
		public unsafe float blurAmount
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_blurAmount);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_blurAmount)) = value;
			}
		}

		// Token: 0x170037AB RID: 14251
		// (get) Token: 0x0600A4A5 RID: 42149 RVA: 0x002A3ADC File Offset: 0x002A1CDC
		// (set) Token: 0x0600A4A6 RID: 42150 RVA: 0x002A3B04 File Offset: 0x002A1D04
		public unsafe bool extraBlur
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_extraBlur);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_extraBlur)) = value;
			}
		}

		// Token: 0x170037AC RID: 14252
		// (get) Token: 0x0600A4A7 RID: 42151 RVA: 0x002A3B28 File Offset: 0x002A1D28
		// (set) Token: 0x0600A4A8 RID: 42152 RVA: 0x002A3B5C File Offset: 0x002A1D5C
		public unsafe RenderTexture accumTexture
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_accumTexture);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new RenderTexture(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_accumTexture), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006E6C RID: 28268
		private static readonly IntPtr NativeFieldInfoPtr_blurAmount;

		// Token: 0x04006E6D RID: 28269
		private static readonly IntPtr NativeFieldInfoPtr_extraBlur;

		// Token: 0x04006E6E RID: 28270
		private static readonly IntPtr NativeFieldInfoPtr_accumTexture;

		// Token: 0x04006E6F RID: 28271
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_Void_0;

		// Token: 0x04006E70 RID: 28272
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0;

		// Token: 0x04006E71 RID: 28273
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006E72 RID: 28274
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
