using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001CD RID: 461
[Token(Token = "0x20001CD")]
public class StageEnvironmentSet : SceneEvent
{
	// Token: 0x0600136F RID: 4975 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600136F")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
	private void Start()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001370 RID: 4976 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001370")]
	[Address(RVA = "0xAAFF90", Offset = "0xAAED90", VA = "0x180AAFF90")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001371 RID: 4977 RVA: 0x0002C974 File Offset: 0x0002AB74
	[Token(Token = "0x6001371")]
	[Address(RVA = "0xAAFE90", Offset = "0xAAEC90", VA = "0x180AAFE90", Slot = "5")]
	public override void OpenEvent()
	{
		base.OpenEvent();
		RenderSettings.skybox = this.SkyBox;
		Material skybox = RenderSettings.skybox;
		this.g_matSkyBox = skybox;
		RenderSettings.ambientLight = this.AmbientLightColor;
		RenderSettings.fogColor = this.FogColor;
		RenderSettings.fogDensity = this.FogDensity;
		int num = 0;
		if ((this.DirectionLightEnable ? 1 : 0) == num)
		{
			Light sun = RenderSettings.sun;
			int num2 = 0;
			sun.enabled = num2 != 0;
			return;
		}
		RenderSettings.sun.enabled = true;
		Light sun2 = RenderSettings.sun;
		Color directionalLightColor = this.DirectionalLightColor;
		sun2.color = directionalLightColor;
		Light sun3 = RenderSettings.sun;
		float directionalLightIntensity = this.DirectionalLightIntensity;
		sun3.intensity = directionalLightIntensity;
	}

	// Token: 0x06001372 RID: 4978 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001372")]
	[Address(RVA = "0xAAFE20", Offset = "0xAAEC20", VA = "0x180AAFE20", Slot = "11")]
	protected override void OnTriggerExit(Collider other)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001373 RID: 4979 RVA: 0x0002CA28 File Offset: 0x0002AC28
	[Token(Token = "0x6001373")]
	[Address(RVA = "0xAB0050", Offset = "0xAAEE50", VA = "0x180AB0050")]
	public StageEnvironmentSet()
	{
	}

	// Token: 0x04001E43 RID: 7747
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001E43")]
	public Material SkyBox;

	// Token: 0x04001E44 RID: 7748
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001E44")]
	public float SkyBoxRotationSpeed;

	// Token: 0x04001E45 RID: 7749
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x4001E45")]
	public Color AmbientLightColor;

	// Token: 0x04001E46 RID: 7750
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4001E46")]
	private float g_fSkyBoxRotationSpeedVal;

	// Token: 0x04001E47 RID: 7751
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4001E47")]
	public Color FogColor;

	// Token: 0x04001E48 RID: 7752
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4001E48")]
	public float FogDensity;

	// Token: 0x04001E49 RID: 7753
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x4001E49")]
	public bool DirectionLightEnable = true;

	// Token: 0x04001E4A RID: 7754
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4001E4A")]
	public Color DirectionalLightColor;

	// Token: 0x04001E4B RID: 7755
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4001E4B")]
	public float DirectionalLightIntensity;

	// Token: 0x04001E4C RID: 7756
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4001E4C")]
	private Material g_matSkyBox;
}
