using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005A9 RID: 1449
	[Token(Token = "0x20005A9")]
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Color Adjustments/Color Correction (Ramp)")]
	public class ColorCorrectionRamp : ImageEffectBase
	{
		// Token: 0x06002ED9 RID: 11993 RVA: 0x00063F1C File Offset: 0x0006211C
		[Token(Token = "0x6002ED9")]
		[Address(RVA = "0xE8BCF0", Offset = "0xE8AAF0", VA = "0x180E8BCF0")]
		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: 0x06002EDA RID: 11994 RVA: 0x00063F58 File Offset: 0x00062158
		[Token(Token = "0x6002EDA")]
		[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
		public ColorCorrectionRamp()
		{
		}

		// Token: 0x0400385C RID: 14428
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x400385C")]
		public Texture textureRamp;
	}
}
