using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200020A RID: 522
[Token(Token = "0x200020A")]
public class StageEnvironmentSet : SceneEvent
{
	// Token: 0x06001523 RID: 5411 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001523")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
	private void Start()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001524 RID: 5412 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001524")]
	[Address(RVA = "0x97FF20", Offset = "0x97EF20", VA = "0x18097FF20")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001525 RID: 5413 RVA: 0x000301F8 File Offset: 0x0002E3F8
	[Token(Token = "0x6001525")]
	[Address(RVA = "0x97FE20", Offset = "0x97EE20", VA = "0x18097FE20", 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: 0x06001526 RID: 5414 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001526")]
	[Address(RVA = "0x97FDB0", Offset = "0x97EDB0", VA = "0x18097FDB0", Slot = "11")]
	protected override void OnTriggerExit(Collider other)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001527 RID: 5415 RVA: 0x000302AC File Offset: 0x0002E4AC
	[Token(Token = "0x6001527")]
	[Address(RVA = "0x97FFE0", Offset = "0x97EFE0", VA = "0x18097FFE0")]
	public StageEnvironmentSet()
	{
	}

	// Token: 0x04002019 RID: 8217
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002019")]
	public Material SkyBox;

	// Token: 0x0400201A RID: 8218
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400201A")]
	public float SkyBoxRotationSpeed;

	// Token: 0x0400201B RID: 8219
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x400201B")]
	public Color AmbientLightColor;

	// Token: 0x0400201C RID: 8220
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x400201C")]
	private float g_fSkyBoxRotationSpeedVal;

	// Token: 0x0400201D RID: 8221
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400201D")]
	public Color FogColor;

	// Token: 0x0400201E RID: 8222
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400201E")]
	public float FogDensity;

	// Token: 0x0400201F RID: 8223
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x400201F")]
	public bool DirectionLightEnable = true;

	// Token: 0x04002020 RID: 8224
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002020")]
	public Color DirectionalLightColor;

	// Token: 0x04002021 RID: 8225
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002021")]
	public float DirectionalLightIntensity;

	// Token: 0x04002022 RID: 8226
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002022")]
	private Material g_matSkyBox;
}
