浏览代码

Added SkyType gradient

/main
Antoine Lelievre 7 年前
当前提交
3d11380a
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Sky/GradientSky/GradientSky.cs
  2. 3
      com.unity.render-pipelines.high-definition/HDRP/Sky/VisualEnvironment.cs

2
com.unity.render-pipelines.high-definition/HDRP/Sky/GradientSky/GradientSky.cs


namespace UnityEngine.Experimental.Rendering.HDPipeline
{
[SkyUniqueID(150)]
[SkyUniqueID((int)SkyType.Gradient)]
public class GradientSky : SkySettings
{
public ColorParameter top = new ColorParameter(Color.blue, true, false, true);

3
com.unity.render-pipelines.high-definition/HDRP/Sky/VisualEnvironment.cs


public enum SkyType
{
HDRISky = 1,
ProceduralSky = 2
ProceduralSky = 2,
Gradient,
}
// Keep this class first in the file. Otherwise it seems that the script type is not registered properly.

正在加载...
取消
保存