您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
655 B
26 行
655 B
namespace UnityEngine.Experimental.Rendering.HDPipeline
|
|
{
|
|
[DisallowMultipleComponent]
|
|
public class HDRISky : SkySettings
|
|
{
|
|
[Tooltip("Cubemap used to render the sky.")]
|
|
public CubemapParameter skyHDRI = new CubemapParameter(null);
|
|
|
|
public override SkyRenderer GetRenderer()
|
|
{
|
|
return new HDRISkyRenderer(this);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
int hash = base.GetHashCode();
|
|
|
|
unchecked
|
|
{
|
|
hash = skyHDRI.value != null ? hash * 23 + skyHDRI.GetHashCode() : hash;
|
|
}
|
|
|
|
return hash;
|
|
}
|
|
}
|
|
}
|