using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020003D3 RID: 979
[Token(Token = "0x20003D3")]
public class WaterReflection : MonoBehaviour
{
	// Token: 0x06002494 RID: 9364 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002494")]
	[Address(RVA = "0x4B9D30", Offset = "0x4B8D30", VA = "0x1804B9D30")]
	public void Awake()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002495 RID: 9365 RVA: 0x00056008 File Offset: 0x00054208
	[Token(Token = "0x6002495")]
	[Address(RVA = "0x4BA190", Offset = "0x4B9190", VA = "0x1804BA190")]
	private void Update()
	{
		if (this.isReady)
		{
			this.RenderReflection();
			return;
		}
	}

	// Token: 0x06002496 RID: 9366 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002496")]
	[Address(RVA = "0x4B9EC0", Offset = "0x4B8EC0", VA = "0x1804B9EC0")]
	private void RenderReflection()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002497 RID: 9367 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6002497")]
	[Address(RVA = "0x4BA1A0", Offset = "0x4B91A0", VA = "0x1804BA1A0")]
	private void Validate()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002498 RID: 9368 RVA: 0x00056028 File Offset: 0x00054228
	[Token(Token = "0x6002498")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public WaterReflection()
	{
	}

	// Token: 0x04002E07 RID: 11783
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002E07")]
	private Camera mainCamera;

	// Token: 0x04002E08 RID: 11784
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002E08")]
	private Camera reflectionCamera;

	// Token: 0x04002E09 RID: 11785
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002E09")]
	[Tooltip("The plane where the camera will be reflected, the water plane or any object with the same position and rotation")]
	public Transform reflectionPlane;

	// Token: 0x04002E0A RID: 11786
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002E0A")]
	[Tooltip("The texture used by the Water shader to display the reflection")]
	public RenderTexture outputTexture;

	// Token: 0x04002E0B RID: 11787
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002E0B")]
	public bool copyCameraParamerers;

	// Token: 0x04002E0C RID: 11788
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4002E0C")]
	public float verticalOffset;

	// Token: 0x04002E0D RID: 11789
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002E0D")]
	private bool isReady;

	// Token: 0x04002E0E RID: 11790
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002E0E")]
	private Transform mainCamTransform;

	// Token: 0x04002E0F RID: 11791
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4002E0F")]
	private Transform reflectionCamTransform;
}
