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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200063C RID: 1596
	public class TiltShift : PostEffectsBase
	{
		// Token: 0x0600A595 RID: 42389 RVA: 0x002A759C File Offset: 0x002A579C
		[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: 0x0600A596 RID: 42390 RVA: 0x002A75F8 File Offset: 0x002A57F8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654221, XrefRangeEnd = 654246, 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: 0x0600A597 RID: 42391 RVA: 0x002A766C File Offset: 0x002A586C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654246, XrefRangeEnd = 654247, 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: 0x0600A598 RID: 42392 RVA: 0x002A76B8 File Offset: 0x002A58B8
		// 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, 100676130);
			TiltShift.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, 100676131);
			TiltShift.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TiltShift>.NativeClassPtr, 100676132);
		}

		// Token: 0x0600A599 RID: 42393 RVA: 0x00298C00 File Offset: 0x00296E00
		public TiltShift(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170037FE RID: 14334
		// (get) Token: 0x0600A59A RID: 42394 RVA: 0x002A77B0 File Offset: 0x002A59B0
		// (set) Token: 0x0600A59B RID: 42395 RVA: 0x002A77D8 File Offset: 0x002A59D8
		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: 0x170037FF RID: 14335
		// (get) Token: 0x0600A59C RID: 42396 RVA: 0x002A77FC File Offset: 0x002A59FC
		// (set) Token: 0x0600A59D RID: 42397 RVA: 0x002A7824 File Offset: 0x002A5A24
		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: 0x17003800 RID: 14336
		// (get) Token: 0x0600A59E RID: 42398 RVA: 0x002A7848 File Offset: 0x002A5A48
		// (set) Token: 0x0600A59F RID: 42399 RVA: 0x002A7870 File Offset: 0x002A5A70
		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: 0x17003801 RID: 14337
		// (get) Token: 0x0600A5A0 RID: 42400 RVA: 0x002A7894 File Offset: 0x002A5A94
		// (set) Token: 0x0600A5A1 RID: 42401 RVA: 0x002A78BC File Offset: 0x002A5ABC
		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: 0x17003802 RID: 14338
		// (get) Token: 0x0600A5A2 RID: 42402 RVA: 0x002A78E0 File Offset: 0x002A5AE0
		// (set) Token: 0x0600A5A3 RID: 42403 RVA: 0x002A7908 File Offset: 0x002A5B08
		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: 0x17003803 RID: 14339
		// (get) Token: 0x0600A5A4 RID: 42404 RVA: 0x002A792C File Offset: 0x002A5B2C
		// (set) Token: 0x0600A5A5 RID: 42405 RVA: 0x002A7960 File Offset: 0x002A5B60
		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: 0x17003804 RID: 14340
		// (get) Token: 0x0600A5A6 RID: 42406 RVA: 0x002A7988 File Offset: 0x002A5B88
		// (set) Token: 0x0600A5A7 RID: 42407 RVA: 0x002A79BC File Offset: 0x002A5BBC
		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: 0x04006F0C RID: 28428
		private static readonly IntPtr NativeFieldInfoPtr_mode;

		// Token: 0x04006F0D RID: 28429
		private static readonly IntPtr NativeFieldInfoPtr_quality;

		// Token: 0x04006F0E RID: 28430
		private static readonly IntPtr NativeFieldInfoPtr_blurArea;

		// Token: 0x04006F0F RID: 28431
		private static readonly IntPtr NativeFieldInfoPtr_maxBlurSize;

		// Token: 0x04006F10 RID: 28432
		private static readonly IntPtr NativeFieldInfoPtr_downsample;

		// Token: 0x04006F11 RID: 28433
		private static readonly IntPtr NativeFieldInfoPtr_tiltShiftShader;

		// Token: 0x04006F12 RID: 28434
		private static readonly IntPtr NativeFieldInfoPtr_tiltShiftMaterial;

		// Token: 0x04006F13 RID: 28435
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x04006F14 RID: 28436
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006F15 RID: 28437
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200063D RID: 1597
		public enum TiltShiftMode
		{
			// Token: 0x04006F17 RID: 28439
			TiltShiftMode,
			// Token: 0x04006F18 RID: 28440
			IrisMode
		}

		// Token: 0x0200063E RID: 1598
		public enum TiltShiftQuality
		{
			// Token: 0x04006F1A RID: 28442
			Preview,
			// Token: 0x04006F1B RID: 28443
			Low,
			// Token: 0x04006F1C RID: 28444
			Normal,
			// Token: 0x04006F1D RID: 28445
			High
		}
	}
}
