using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005BD RID: 1469
	[Token(Token = "0x20005BD")]
	[ExecuteInEditMode]
	[RequireComponent(typeof(Camera))]
	[AddComponentMenu("Image Effects/Noise/Noise And Grain (Filmic)")]
	public class NoiseAndGrain : PostEffectsBase
	{
		// Token: 0x06002F1F RID: 12063 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002F1F")]
		[Address(RVA = "0xED1750", Offset = "0xED0550", VA = "0x180ED1750", Slot = "4")]
		public override bool CheckResources()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002F20 RID: 12064 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002F20")]
		[Address(RVA = "0xED1BE0", Offset = "0xED09E0", VA = "0x180ED1BE0")]
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002F21 RID: 12065 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002F21")]
		[Address(RVA = "0xED17F0", Offset = "0xED05F0", VA = "0x180ED17F0")]
		private static void DrawNoiseQuadGrid(RenderTexture source, RenderTexture dest, Material fxMaterial, Texture2D noise, int passNr)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002F22 RID: 12066 RVA: 0x000648E8 File Offset: 0x00062AE8
		[Token(Token = "0x6002F22")]
		[Address(RVA = "0xED2570", Offset = "0xED1370", VA = "0x180ED2570")]
		public NoiseAndGrain()
		{
			ulong num;
			this.intensities.z = (float)num;
			ulong num2;
			this.tiling.z = (float)num2;
			this.intensityMultiplier = 0.25f;
			this.generalIntensity = 0.5f;
			this.blackIntensity = 1f;
			this.whiteIntensity = 1f;
			this.midGrey = 0.2f;
			this.monochromeTiling = 64f;
			this.filterMode = (FilterMode)((ulong)1L);
			base..ctor();
		}

		// Token: 0x040038F9 RID: 14585
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x40038F9")]
		public float intensityMultiplier;

		// Token: 0x040038FA RID: 14586
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x40038FA")]
		public float generalIntensity;

		// Token: 0x040038FB RID: 14587
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x40038FB")]
		public float blackIntensity;

		// Token: 0x040038FC RID: 14588
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x40038FC")]
		public float whiteIntensity;

		// Token: 0x040038FD RID: 14589
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x40038FD")]
		public float midGrey;

		// Token: 0x040038FE RID: 14590
		[FieldOffset(Offset = "0x3C")]
		[Token(Token = "0x40038FE")]
		public bool dx11Grain;

		// Token: 0x040038FF RID: 14591
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x40038FF")]
		public float softness;

		// Token: 0x04003900 RID: 14592
		[FieldOffset(Offset = "0x44")]
		[Token(Token = "0x4003900")]
		public bool monochrome;

		// Token: 0x04003901 RID: 14593
		[FieldOffset(Offset = "0x48")]
		[Token(Token = "0x4003901")]
		public Vector3 intensities;

		// Token: 0x04003902 RID: 14594
		[FieldOffset(Offset = "0x54")]
		[Token(Token = "0x4003902")]
		public Vector3 tiling;

		// Token: 0x04003903 RID: 14595
		[FieldOffset(Offset = "0x60")]
		[Token(Token = "0x4003903")]
		public float monochromeTiling;

		// Token: 0x04003904 RID: 14596
		[FieldOffset(Offset = "0x64")]
		[Token(Token = "0x4003904")]
		public FilterMode filterMode;

		// Token: 0x04003905 RID: 14597
		[FieldOffset(Offset = "0x68")]
		[Token(Token = "0x4003905")]
		public Texture2D noiseTexture;

		// Token: 0x04003906 RID: 14598
		[FieldOffset(Offset = "0x70")]
		[Token(Token = "0x4003906")]
		public Shader noiseShader;

		// Token: 0x04003907 RID: 14599
		[FieldOffset(Offset = "0x78")]
		[Token(Token = "0x4003907")]
		private Material noiseMaterial;

		// Token: 0x04003908 RID: 14600
		[FieldOffset(Offset = "0x80")]
		[Token(Token = "0x4003908")]
		public Shader dx11NoiseShader;

		// Token: 0x04003909 RID: 14601
		[FieldOffset(Offset = "0x88")]
		[Token(Token = "0x4003909")]
		private Material dx11NoiseMaterial;

		// Token: 0x0400390A RID: 14602
		[Token(Token = "0x400390A")]
		private static float TILE_AMOUNT;
	}
}
