您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
42 行
992 B
42 行
992 B
namespace UnityEngine.Experimental.Rendering.HDPipeline
|
|
{
|
|
[ExecuteInEditMode]
|
|
[AddComponentMenu("Rendering/Homogeneous Fog", -1)]
|
|
public class HomogeneousFog : MonoBehaviour
|
|
{
|
|
public VolumeParameters volumeParameters;
|
|
|
|
private void Awake()
|
|
{
|
|
if (volumeParameters == null)
|
|
{
|
|
volumeParameters = new VolumeParameters();
|
|
}
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
}
|
|
|
|
private void OnDisable()
|
|
{
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
|
|
private void OnValidate()
|
|
{
|
|
volumeParameters.Constrain();
|
|
}
|
|
|
|
void OnDrawGizmos()
|
|
{
|
|
if (volumeParameters != null && !volumeParameters.IsVolumeUnbounded())
|
|
{
|
|
Gizmos.DrawWireCube(volumeParameters.bounds.center, volumeParameters.bounds.size);
|
|
}
|
|
}
|
|
}
|
|
} // UnityEngine.Experimental.Rendering.HDPipeline
|