using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005A1 RID: 1441
	[Token(Token = "0x20005A1")]
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Blur/Blur")]
	public class Blur : MonoBehaviour
	{
		// Token: 0x17000381 RID: 897
		// (get) Token: 0x06002EB2 RID: 11954 RVA: 0x00063A7C File Offset: 0x00061C7C
		[Token(Token = "0x17000381")]
		protected Material material
		{
			[Token(Token = "0x6002EB2")]
			[Address(RVA = "0xDE3AB0", Offset = "0xDE28B0", VA = "0x180DE3AB0")]
			get
			{
				Material material = Blur.m_Material;
				int num = 0;
				if (material == num)
				{
					Blur.m_Material = new Material(this.blurShader);
					Blur.m_Material.hideFlags = HideFlags.DontSave;
				}
				return Blur.m_Material;
			}
		}

		// Token: 0x06002EB3 RID: 11955 RVA: 0x00063AC4 File Offset: 0x00061CC4
		[Token(Token = "0x6002EB3")]
		[Address(RVA = "0xDE34E0", Offset = "0xDE22E0", VA = "0x180DE34E0")]
		protected void OnDisable()
		{
			if (Blur.m_Material)
			{
				UnityEngine.Object.DestroyImmediate(Blur.m_Material);
				return;
			}
		}

		// Token: 0x06002EB4 RID: 11956 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002EB4")]
		[Address(RVA = "0xDE39D0", Offset = "0xDE27D0", VA = "0x180DE39D0")]
		protected void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002EB5 RID: 11957 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002EB5")]
		[Address(RVA = "0xDE3360", Offset = "0xDE2160", VA = "0x180DE3360")]
		public void FourTapCone(RenderTexture source, RenderTexture dest, int iteration)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002EB6 RID: 11958 RVA: 0x00063AEC File Offset: 0x00061CEC
		[Token(Token = "0x6002EB6")]
		[Address(RVA = "0xDE3200", Offset = "0xDE2000", VA = "0x180DE3200")]
		private void DownSample4x(RenderTexture source, RenderTexture dest)
		{
			Material material = this.material;
			Vector2[] array = new Vector2[4];
			int length = array.Length;
			array[0] = (ulong)3212836864L;
			array[0] = (ulong)3212836864L;
			array[1] = (ulong)3212836864L;
			array[1] = (ulong)1065353216L;
			array[2] = (ulong)1065353216L;
			array[2] = (ulong)1065353216L;
			array[3] = (ulong)1065353216L;
			array[3] = (ulong)3212836864L;
			Graphics.BlitMultiTap(source, dest, material, array);
		}

		// Token: 0x06002EB7 RID: 11959 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002EB7")]
		[Address(RVA = "0xDE35E0", Offset = "0xDE23E0", VA = "0x180DE35E0")]
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002EB8 RID: 11960 RVA: 0x00063B9C File Offset: 0x00061D9C
		[Token(Token = "0x6002EB8")]
		[Address(RVA = "0xDE3A90", Offset = "0xDE2890", VA = "0x180DE3A90")]
		public Blur()
		{
		}

		// Token: 0x06002EB9 RID: 11961 RVA: 0x000020D3 File Offset: 0x000002D3
		// Note: this type is marked as 'beforefieldinit'.
		[Token(Token = "0x6002EB9")]
		[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
		static Blur()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0400380A RID: 14346
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x400380A")]
		[Range(0f, 10f)]
		public int iterations = (int)((ulong)3L);

		// Token: 0x0400380B RID: 14347
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x400380B")]
		[Range(0f, 1f)]
		public float blurSpread = 0.6f;

		// Token: 0x0400380C RID: 14348
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x400380C")]
		public Shader blurShader;

		// Token: 0x0400380D RID: 14349
		[Token(Token = "0x400380D")]
		private static Material m_Material;
	}
}
