using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

// Token: 0x0200033F RID: 831
[Token(Token = "0x200033F")]
public class GameVolumeController : MonoBehaviour
{
	// Token: 0x06001E73 RID: 7795 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001E73")]
	[Address(RVA = "0xA2D330", Offset = "0xA2C330", VA = "0x180A2D330")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001E74 RID: 7796 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001E74")]
	[Address(RVA = "0xA2DE80", Offset = "0xA2CE80", VA = "0x180A2DE80")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001E75 RID: 7797 RVA: 0x000484B0 File Offset: 0x000466B0
	[Token(Token = "0x6001E75")]
	[Address(RVA = "0xA2DDF0", Offset = "0xA2CDF0", VA = "0x180A2DDF0")]
	private void UpdateVolumeSettings(ScreenSettings settings)
	{
		FloatParameter postExposure = this.colorAdjustments.postExposure;
		int num = 0;
		float brightnessValue = settings.GetBrightnessValue();
		postExposure.value = num;
		Bloom bloom = this.bloom;
		bool bloomEffect = settings.bloomEffect;
		bloom.active = bloomEffect;
		DepthOfField depthOfField = this.dof;
		bool depthOfField2 = settings.depthOfField;
		depthOfField.active = depthOfField2;
	}

	// Token: 0x06001E76 RID: 7798 RVA: 0x00048510 File Offset: 0x00046710
	[Token(Token = "0x6001E76")]
	[Address(RVA = "0xA2D0F0", Offset = "0xA2C0F0", VA = "0x180A2D0F0")]
	public void EnableAimEffect(bool enable)
	{
		if (!enable)
		{
			this.ResetDefaultDofValues();
			return;
		}
		this.dof.focusDistance.value = 20f;
		this.dof.focalLength.value = 100f;
		Renderer2DData rendererData = ((IRenderPass2D)this.dof.aperture).rendererData;
	}

	// Token: 0x06001E77 RID: 7799 RVA: 0x0004856C File Offset: 0x0004676C
	[Token(Token = "0x6001E77")]
	[Address(RVA = "0xA2D280", Offset = "0xA2C280", VA = "0x180A2D280")]
	public void EnableStoryEffect(bool enable)
	{
		if (!enable)
		{
			this.ResetDefaultDofValues();
			return;
		}
		this.dof.focusDistance.value = 1f;
		this.dof.focalLength.value = 30f;
		Renderer2DData rendererData = ((IRenderPass2D)this.dof.aperture).rendererData;
	}

	// Token: 0x06001E78 RID: 7800 RVA: 0x000485C8 File Offset: 0x000467C8
	[Token(Token = "0x6001E78")]
	[Address(RVA = "0xA2D820", Offset = "0xA2C820", VA = "0x180A2D820")]
	private void ResetDefaultDofValues()
	{
		DepthOfField depthOfField = this.dof;
		int num = 0;
		if (!(depthOfField == num))
		{
			MinFloatParameter focusDistance = this.dof.focusDistance;
			float num2 = this.defaultDofFocusDistance;
			focusDistance.value = num2;
			ClampedFloatParameter focalLength = this.dof.focalLength;
			float num3 = this.defaultDofFocalLength;
			focalLength.value = num3;
			ClampedFloatParameter aperture = this.dof.aperture;
			float num4 = this.defaultDofAperture;
			aperture.value = num4;
		}
	}

	// Token: 0x06001E79 RID: 7801 RVA: 0x00048644 File Offset: 0x00046844
	[Token(Token = "0x6001E79")]
	[Address(RVA = "0xA2D1A0", Offset = "0xA2C1A0", VA = "0x180A2D1A0")]
	public void EnableLightningMode(bool enable)
	{
		this.bLightningMode = enable;
	}

	// Token: 0x06001E7A RID: 7802 RVA: 0x00048658 File Offset: 0x00046858
	[Token(Token = "0x6001E7A")]
	[Address(RVA = "0xA2D1B0", Offset = "0xA2C1B0", VA = "0x180A2D1B0")]
	public void EnableStage04BlackFog(bool enable)
	{
		this.bStage04BlackFog = enable;
	}

	// Token: 0x06001E7B RID: 7803 RVA: 0x0004866C File Offset: 0x0004686C
	[Token(Token = "0x6001E7B")]
	[Address(RVA = "0xA2D1C0", Offset = "0xA2C1C0", VA = "0x180A2D1C0")]
	public void EnableStage04Room08Effect(bool enable)
	{
		bool flag = this.bVignette;
		this.bStage04Room08Story = enable;
		if (!enable)
		{
			if (flag)
			{
				ClampedFloatParameter intensity = this.vignette.intensity;
				int num = 0;
				intensity.value = (float)num;
			}
			this.ResetDefaultDofValues();
			return;
		}
		if (flag)
		{
			this.vignette.intensity.value = 0.6f;
		}
		Renderer2DData rendererData = ((IRenderPass2D)this.dof.focusDistance).rendererData;
	}

	// Token: 0x06001E7C RID: 7804 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001E7C")]
	[Address(RVA = "0xA2D910", Offset = "0xA2C910", VA = "0x180A2D910")]
	public void SetProfile(VolumeProfile profile)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001E7D RID: 7805 RVA: 0x000486DC File Offset: 0x000468DC
	[Token(Token = "0x6001E7D")]
	[Address(RVA = "0xA2D700", Offset = "0xA2C700", VA = "0x180A2D700")]
	private void OnDisable()
	{
		Game.OnScreenSettingsChanged -= new Action(this.UpdateVolumeSettings);
		this.ResetDefaultDofValues();
	}

	// Token: 0x06001E7E RID: 7806 RVA: 0x00048700 File Offset: 0x00046900
	[Token(Token = "0x6001E7E")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public GameVolumeController()
	{
	}

	// Token: 0x0400282C RID: 10284
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400282C")]
	private Volume volume;

	// Token: 0x0400282D RID: 10285
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400282D")]
	private ColorAdjustments colorAdjustments;

	// Token: 0x0400282E RID: 10286
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400282E")]
	private Bloom bloom;

	// Token: 0x0400282F RID: 10287
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400282F")]
	private DepthOfField dof;

	// Token: 0x04002830 RID: 10288
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002830")]
	private Vignette vignette;

	// Token: 0x04002831 RID: 10289
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002831")]
	private ChromaticAberration chromaticAberration;

	// Token: 0x04002832 RID: 10290
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002832")]
	private SplitToning splitToning;

	// Token: 0x04002833 RID: 10291
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4002833")]
	private float defaultDofFocusDistance;

	// Token: 0x04002834 RID: 10292
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4002834")]
	private float defaultDofFocalLength;

	// Token: 0x04002835 RID: 10293
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4002835")]
	private float defaultDofAperture;

	// Token: 0x04002836 RID: 10294
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x4002836")]
	private bool bChromaticAberration;

	// Token: 0x04002837 RID: 10295
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4002837")]
	private float fChromaticAberrationIntensity;

	// Token: 0x04002838 RID: 10296
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x4002838")]
	private bool bSplitToning;

	// Token: 0x04002839 RID: 10297
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002839")]
	private float fSplitToningColorWeight;

	// Token: 0x0400283A RID: 10298
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x400283A")]
	private bool bLightningMode;

	// Token: 0x0400283B RID: 10299
	[FieldOffset(Offset = "0x6D")]
	[Token(Token = "0x400283B")]
	private bool bVignette;

	// Token: 0x0400283C RID: 10300
	[FieldOffset(Offset = "0x6E")]
	[Token(Token = "0x400283C")]
	private bool bStage04BlackFog;

	// Token: 0x0400283D RID: 10301
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x400283D")]
	private float fVignetteIntensity;

	// Token: 0x0400283E RID: 10302
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x400283E")]
	private bool bStage04Room08Story;
}
