您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

39 行
1.3 KiB

namespace UnityEngine.Experimental.Rendering.HDPipeline
{
[DisallowMultipleComponent]
public class ProceduralSkySettings : SkySettings
{
[Range(0.0f,1.0f)]
public float sunSize = 0.04f;
[Range(1.0f,10.0f)]
public float sunSizeConvergence = 5.0f;
[Range(0.0f,5.0f)]
public float atmosphereThickness = 1.0f;
public Color skyTint = new Color(0.5f, 0.5f, 0.5f, 1.0f);
public Color groundColor = new Color(0.369f, 0.349f, 0.341f, 1.0f);
public bool enableSunDisk = true;
public override SkyRenderer GetRenderer()
{
return new ProceduralSkyRenderer(this);
}
public override int GetHashCode()
{
int hash = base.GetHashCode();
unchecked
{
hash = hash * 23 + sunSize.GetHashCode();
hash = hash * 23 + sunSizeConvergence.GetHashCode();
hash = hash * 23 + atmosphereThickness.GetHashCode();
hash = hash * 23 + skyTint.GetHashCode();
hash = hash * 23 + groundColor.GetHashCode();
hash = hash * 23 + multiplier.GetHashCode();
hash = hash * 23 + enableSunDisk.GetHashCode();
}
return hash;
}
}
}