40 lines
936 B
C#
40 lines
936 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
[Serializable]
|
|
public class LightVariables
|
|
{
|
|
[Tooltip("Color gradient for sun and moon light based on current time. 0h - 24h")]
|
|
[Header("Direct")]
|
|
public Gradient LightColor;
|
|
|
|
[Tooltip("Sunlight intensity.")]
|
|
public float SunIntensity = 2f;
|
|
|
|
[Tooltip("Moonlight intensity.")]
|
|
public float MoonIntensity = 0.5f;
|
|
|
|
[Tooltip("Current Moon phase.-1f - 1f")]
|
|
public float MoonPhase;
|
|
|
|
[Tooltip("Ambient Rendering Mode.")]
|
|
[Header("Ambient")]
|
|
public AmbientMode ambientMode;
|
|
|
|
[Tooltip("Ambientlight ntensity based on current time. 0h - 24h")]
|
|
public AnimationCurve ambientIntensity;
|
|
|
|
[Tooltip("Ambientlight sky color.")]
|
|
public Gradient ambientSkyColor;
|
|
|
|
[Tooltip("Ambientlight Equator color.")]
|
|
public Gradient ambientEquatorColor;
|
|
|
|
[Tooltip("Ambientlight Ground color.")]
|
|
public Gradient ambientGroundColor;
|
|
|
|
[HideInInspector]
|
|
public float SunWeatherMod;
|
|
}
|