using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005F9 RID: 1529
	[Token(Token = "0x20005F9")]
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Blur/Blur")]
	public class Blur : MonoBehaviour
	{
		// Token: 0x170003A6 RID: 934
		// (get) Token: 0x0600317B RID: 12667 RVA: 0x0006AD38 File Offset: 0x00068F38
		[Token(Token = "0x170003A6")]
		protected Material material
		{
			[Token(Token = "0x600317B")]
			[Address(RVA = "0x7B3410", Offset = "0x7B2410", VA = "0x1807B3410")]
			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: 0x0600317C RID: 12668 RVA: 0x0006AD80 File Offset: 0x00068F80
		[Token(Token = "0x600317C")]
		[Address(RVA = "0x7B2E40", Offset = "0x7B1E40", VA = "0x1807B2E40")]
		protected void OnDisable()
		{
			if (Blur.m_Material)
			{
				UnityEngine.Object.DestroyImmediate(Blur.m_Material);
				return;
			}
		}

		// Token: 0x0600317D RID: 12669 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600317D")]
		[Address(RVA = "0x7B3330", Offset = "0x7B2330", VA = "0x1807B3330")]
		protected void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600317E RID: 12670 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600317E")]
		[Address(RVA = "0x7B2CC0", Offset = "0x7B1CC0", VA = "0x1807B2CC0")]
		public void FourTapCone(RenderTexture source, RenderTexture dest, int iteration)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600317F RID: 12671 RVA: 0x0006ADA8 File Offset: 0x00068FA8
		[Token(Token = "0x600317F")]
		[Address(RVA = "0x7B2B60", Offset = "0x7B1B60", VA = "0x1807B2B60")]
		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: 0x06003180 RID: 12672 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003180")]
		[Address(RVA = "0x7B2F40", Offset = "0x7B1F40", VA = "0x1807B2F40")]
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003181 RID: 12673 RVA: 0x0006AE58 File Offset: 0x00069058
		[Token(Token = "0x6003181")]
		[Address(RVA = "0x7B33F0", Offset = "0x7B23F0", VA = "0x1807B33F0")]
		public Blur()
		{
		}

		// Token: 0x06003182 RID: 12674 RVA: 0x000020D3 File Offset: 0x000002D3
		// Note: this type is marked as 'beforefieldinit'.
		[Token(Token = "0x6003182")]
		[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
		static Blur()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

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

		// Token: 0x04003AF5 RID: 15093
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4003AF5")]
		[Range(0f, 1f)]
		public float blurSpread = 0.6f;

		// Token: 0x04003AF6 RID: 15094
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003AF6")]
		public Shader blurShader;

		// Token: 0x04003AF7 RID: 15095
		[Token(Token = "0x4003AF7")]
		private static Material m_Material;
	}
}
