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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005D5 RID: 1493
	public class MotionBlur : ImageEffectBase
	{
		// Token: 0x06009C4A RID: 40010 RVA: 0x00280B38 File Offset: 0x0027ED38
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620832, XrefRangeEnd = 620833, 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: 0x06009C4B RID: 40011 RVA: 0x00280B88 File Offset: 0x0027ED88
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620833, XrefRangeEnd = 620838, 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: 0x06009C4C RID: 40012 RVA: 0x00280BD8 File Offset: 0x0027EDD8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620838, XrefRangeEnd = 620878, 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: 0x06009C4D RID: 40013 RVA: 0x00280C4C File Offset: 0x0027EE4C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620878, XrefRangeEnd = 620879, 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: 0x06009C4E RID: 40014 RVA: 0x00280C98 File Offset: 0x0027EE98
		// 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, 100675355);
			MotionBlur.NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675356);
			MotionBlur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675357);
			MotionBlur.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675358);
		}

		// Token: 0x06009C4F RID: 40015 RVA: 0x0027BA8C File Offset: 0x00279C8C
		public MotionBlur(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700350F RID: 13583
		// (get) Token: 0x06009C50 RID: 40016 RVA: 0x00280D54 File Offset: 0x0027EF54
		// (set) Token: 0x06009C51 RID: 40017 RVA: 0x00280D7C File Offset: 0x0027EF7C
		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: 0x17003510 RID: 13584
		// (get) Token: 0x06009C52 RID: 40018 RVA: 0x00280DA0 File Offset: 0x0027EFA0
		// (set) Token: 0x06009C53 RID: 40019 RVA: 0x00280DC8 File Offset: 0x0027EFC8
		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: 0x17003511 RID: 13585
		// (get) Token: 0x06009C54 RID: 40020 RVA: 0x00280DEC File Offset: 0x0027EFEC
		// (set) Token: 0x06009C55 RID: 40021 RVA: 0x00280E20 File Offset: 0x0027F020
		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: 0x040068C3 RID: 26819
		private static readonly IntPtr NativeFieldInfoPtr_blurAmount;

		// Token: 0x040068C4 RID: 26820
		private static readonly IntPtr NativeFieldInfoPtr_extraBlur;

		// Token: 0x040068C5 RID: 26821
		private static readonly IntPtr NativeFieldInfoPtr_accumTexture;

		// Token: 0x040068C6 RID: 26822
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_Void_0;

		// Token: 0x040068C7 RID: 26823
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0;

		// Token: 0x040068C8 RID: 26824
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040068C9 RID: 26825
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
