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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005E4 RID: 1508
	public class TiltShift : PostEffectsBase
	{
		// Token: 0x06009D42 RID: 40258 RVA: 0x00284860 File Offset: 0x00282A60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, 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), TiltShift.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009D43 RID: 40259 RVA: 0x002848BC File Offset: 0x00282ABC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621919, XrefRangeEnd = 621944, 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(TiltShift.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009D44 RID: 40260 RVA: 0x00284930 File Offset: 0x00282B30
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621944, XrefRangeEnd = 621945, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TiltShift()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TiltShift>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TiltShift.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009D45 RID: 40261 RVA: 0x0028497C File Offset: 0x00282B7C
		// Note: this type is marked as 'beforefieldinit'.
		static TiltShift()
		{
			Il2CppClassPointerStore<TiltShift>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "TiltShift");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TiltShift>.NativeClassPtr);
			TiltShift.NativeFieldInfoPtr_mode = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "mode");
			TiltShift.NativeFieldInfoPtr_quality = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "quality");
			TiltShift.NativeFieldInfoPtr_blurArea = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "blurArea");
			TiltShift.NativeFieldInfoPtr_maxBlurSize = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "maxBlurSize");
			TiltShift.NativeFieldInfoPtr_downsample = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "downsample");
			TiltShift.NativeFieldInfoPtr_tiltShiftShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "tiltShiftShader");
			TiltShift.NativeFieldInfoPtr_tiltShiftMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, "tiltShiftMaterial");
			TiltShift.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, 100675417);
			TiltShift.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, 100675418);
			TiltShift.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, 100675419);
		}

		// Token: 0x06009D46 RID: 40262 RVA: 0x00275EC4 File Offset: 0x002740C4
		public TiltShift(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003563 RID: 13667
		// (get) Token: 0x06009D47 RID: 40263 RVA: 0x00284A74 File Offset: 0x00282C74
		// (set) Token: 0x06009D48 RID: 40264 RVA: 0x00284A9C File Offset: 0x00282C9C
		public unsafe TiltShift.TiltShiftMode mode
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_mode);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_mode)) = value;
			}
		}

		// Token: 0x17003564 RID: 13668
		// (get) Token: 0x06009D49 RID: 40265 RVA: 0x00284AC0 File Offset: 0x00282CC0
		// (set) Token: 0x06009D4A RID: 40266 RVA: 0x00284AE8 File Offset: 0x00282CE8
		public unsafe TiltShift.TiltShiftQuality quality
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_quality);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_quality)) = value;
			}
		}

		// Token: 0x17003565 RID: 13669
		// (get) Token: 0x06009D4B RID: 40267 RVA: 0x00284B0C File Offset: 0x00282D0C
		// (set) Token: 0x06009D4C RID: 40268 RVA: 0x00284B34 File Offset: 0x00282D34
		public unsafe float blurArea
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_blurArea);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_blurArea)) = value;
			}
		}

		// Token: 0x17003566 RID: 13670
		// (get) Token: 0x06009D4D RID: 40269 RVA: 0x00284B58 File Offset: 0x00282D58
		// (set) Token: 0x06009D4E RID: 40270 RVA: 0x00284B80 File Offset: 0x00282D80
		public unsafe float maxBlurSize
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_maxBlurSize);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_maxBlurSize)) = value;
			}
		}

		// Token: 0x17003567 RID: 13671
		// (get) Token: 0x06009D4F RID: 40271 RVA: 0x00284BA4 File Offset: 0x00282DA4
		// (set) Token: 0x06009D50 RID: 40272 RVA: 0x00284BCC File Offset: 0x00282DCC
		public unsafe int downsample
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_downsample);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_downsample)) = value;
			}
		}

		// Token: 0x17003568 RID: 13672
		// (get) Token: 0x06009D51 RID: 40273 RVA: 0x00284BF0 File Offset: 0x00282DF0
		// (set) Token: 0x06009D52 RID: 40274 RVA: 0x00284C24 File Offset: 0x00282E24
		public unsafe Shader tiltShiftShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_tiltShiftShader);
				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(TiltShift.NativeFieldInfoPtr_tiltShiftShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003569 RID: 13673
		// (get) Token: 0x06009D53 RID: 40275 RVA: 0x00284C4C File Offset: 0x00282E4C
		// (set) Token: 0x06009D54 RID: 40276 RVA: 0x00284C80 File Offset: 0x00282E80
		public unsafe Material tiltShiftMaterial
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TiltShift.NativeFieldInfoPtr_tiltShiftMaterial);
				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(TiltShift.NativeFieldInfoPtr_tiltShiftMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006963 RID: 26979
		private static readonly IntPtr NativeFieldInfoPtr_mode;

		// Token: 0x04006964 RID: 26980
		private static readonly IntPtr NativeFieldInfoPtr_quality;

		// Token: 0x04006965 RID: 26981
		private static readonly IntPtr NativeFieldInfoPtr_blurArea;

		// Token: 0x04006966 RID: 26982
		private static readonly IntPtr NativeFieldInfoPtr_maxBlurSize;

		// Token: 0x04006967 RID: 26983
		private static readonly IntPtr NativeFieldInfoPtr_downsample;

		// Token: 0x04006968 RID: 26984
		private static readonly IntPtr NativeFieldInfoPtr_tiltShiftShader;

		// Token: 0x04006969 RID: 26985
		private static readonly IntPtr NativeFieldInfoPtr_tiltShiftMaterial;

		// Token: 0x0400696A RID: 26986
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x0400696B RID: 26987
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x0400696C RID: 26988
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020005E5 RID: 1509
		public enum TiltShiftMode
		{
			// Token: 0x0400696E RID: 26990
			TiltShiftMode,
			// Token: 0x0400696F RID: 26991
			IrisMode
		}

		// Token: 0x020005E6 RID: 1510
		public enum TiltShiftQuality
		{
			// Token: 0x04006971 RID: 26993
			Preview,
			// Token: 0x04006972 RID: 26994
			Low,
			// Token: 0x04006973 RID: 26995
			Normal,
			// Token: 0x04006974 RID: 26996
			High
		}
	}
}
