You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.4 KiB
76 lines
2.4 KiB
12 months ago
|
using System;
|
||
|
|
||
|
namespace UnityEngine.AzureSky
|
||
|
{
|
||
|
[Serializable]
|
||
|
public class AzureSkyLightingComponent
|
||
|
{
|
||
|
public int directionalLightIntensityCurveIndex = 0;
|
||
|
public AnimationCurve[] directionalLightIntensityCurve = new AnimationCurve[]
|
||
|
{
|
||
|
AnimationCurve.Linear (0.0f, 1.0f, 24.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f)
|
||
|
};
|
||
|
|
||
|
public int directionalLightGradientColorIndex = 0;
|
||
|
public Gradient[] directionalLightGradientColor = new Gradient[]
|
||
|
{
|
||
|
new Gradient(),
|
||
|
new Gradient(),
|
||
|
new Gradient()
|
||
|
};
|
||
|
|
||
|
public int ambientIntensityCurveIndex = 0;
|
||
|
public AnimationCurve[] ambientIntensityCurve = new AnimationCurve[]
|
||
|
{
|
||
|
AnimationCurve.Linear (0.0f, 1.0f, 24.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f)
|
||
|
};
|
||
|
|
||
|
public int ambientSkyGradientColorIndex = 0;
|
||
|
public Gradient[] ambientSkyGradientColor = new Gradient[]
|
||
|
{
|
||
|
new Gradient(),
|
||
|
new Gradient(),
|
||
|
new Gradient()
|
||
|
};
|
||
|
|
||
|
public int equatorGradientColorIndex = 0;
|
||
|
public Gradient[] equatorGradientColor = new Gradient[]
|
||
|
{
|
||
|
new Gradient(),
|
||
|
new Gradient(),
|
||
|
new Gradient()
|
||
|
};
|
||
|
|
||
|
public int groundGradientColorIndex = 0;
|
||
|
public Gradient[] groundGradientColor = new Gradient[]
|
||
|
{
|
||
|
new Gradient(),
|
||
|
new Gradient(),
|
||
|
new Gradient()
|
||
|
};
|
||
|
|
||
|
public int reflectionIntensityCurveIndex = 0;
|
||
|
public AnimationCurve[] reflectionIntensityCurve = new AnimationCurve[]
|
||
|
{
|
||
|
AnimationCurve.Linear (0.0f, 1.0f, 24.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f),
|
||
|
AnimationCurve.Linear (-1.0f, 1.0f, 1.0f, 1.0f)
|
||
|
};
|
||
|
|
||
|
public int fastIndexes = 0;
|
||
|
public void FastIndexesChange()
|
||
|
{
|
||
|
directionalLightIntensityCurveIndex = fastIndexes;
|
||
|
directionalLightGradientColorIndex = fastIndexes;
|
||
|
ambientIntensityCurveIndex = fastIndexes;
|
||
|
ambientSkyGradientColorIndex = fastIndexes;
|
||
|
equatorGradientColorIndex = fastIndexes;
|
||
|
groundGradientColorIndex = fastIndexes;
|
||
|
reflectionIntensityCurveIndex = fastIndexes;
|
||
|
}
|
||
|
}
|
||
|
}
|