using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000601 RID: 1537
	[Token(Token = "0x2000601")]
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Color Adjustments/Color Correction (Ramp)")]
	public class ColorCorrectionRamp : ImageEffectBase
	{
		// Token: 0x060031A2 RID: 12706 RVA: 0x0006B1D8 File Offset: 0x000693D8
		[Token(Token = "0x60031A2")]
		[Address(RVA = "0x12E9C70", Offset = "0x12E8C70", VA = "0x1812E9C70")]
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			Material material = base.material;
			Texture texture = this.textureRamp;
			material.SetTexture("_RampTex", texture);
			Material material2 = base.material;
			Graphics.Blit(source, destination, material2);
		}

		// Token: 0x060031A3 RID: 12707 RVA: 0x0006B214 File Offset: 0x00069414
		[Token(Token = "0x60031A3")]
		[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
		public ColorCorrectionRamp()
		{
		}

		// Token: 0x04003B46 RID: 15174
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003B46")]
		public Texture textureRamp;
	}
}
