|
|
|
|
|
|
using System; |
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
using System.Diagnostics; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|
|
|
|
|
|
{ |
|
|
|
private readonly static int m_TypeParam = Shader.PropertyToID("_AtmosphericScatteringType"); |
|
|
|
static readonly int m_TypeParam = Shader.PropertyToID("_AtmosphericScatteringType"); |
|
|
|
private readonly static int m_ColorModeParam = Shader.PropertyToID("_FogColorMode"); |
|
|
|
private readonly static int m_FogColorDensityParam = Shader.PropertyToID("_FogColorDensity"); |
|
|
|
private readonly static int m_MipFogParam = Shader.PropertyToID("_MipFogParameters"); |
|
|
|
|
|
|
|
static readonly int m_ColorModeParam = Shader.PropertyToID("_FogColorMode"); |
|
|
|
static readonly int m_FogColorDensityParam = Shader.PropertyToID("_FogColorDensity"); |
|
|
|
static readonly int m_MipFogParam = Shader.PropertyToID("_MipFogParameters"); |
|
|
|
public FogColorParameter colorMode = new FogColorParameter { value = FogColorMode.SkyColor }; |
|
|
|
public FogColorParameter colorMode = new FogColorParameter(FogColorMode.SkyColor); |
|
|
|
public ColorParameter color = new ColorParameter(Color.grey); |
|
|
|
public ClampedFloatParameter density = new ClampedFloatParameter(1.0f, 0.0f, 1.0f); |
|
|
|
public ColorParameter color = new ColorParameter(Color.grey); |
|
|
|
public ClampedFloatParameter density = new ClampedFloatParameter(1.0f, 0.0f, 1.0f); |
|
|
|
public ClampedFloatParameter mipFogMaxMip = new ClampedFloatParameter(1.0f, 0.0f, 1.0f); |
|
|
|
public ClampedFloatParameter mipFogMaxMip = new ClampedFloatParameter(1.0f, 0.0f, 1.0f); |
|
|
|
public MinFloatParameter mipFogNear = new MinFloatParameter(0.0f, 0.0f); |
|
|
|
public MinFloatParameter mipFogNear = new MinFloatParameter(0.0f, 0.0f); |
|
|
|
public MinFloatParameter mipFogFar = new MinFloatParameter(1000.0f, 0.0f); |
|
|
|
public MinFloatParameter mipFogFar = new MinFloatParameter(1000.0f, 0.0f); |
|
|
|
|
|
|
|
public abstract void PushShaderParameters(CommandBuffer cmd, FrameSettings frameSettings); |
|
|
|
|
|
|
|
|
|
|
SkyColor, |
|
|
|
} |
|
|
|
|
|
|
|
[Serializable] |
|
|
|
[Serializable, DebuggerDisplay(k_DebuggerDisplay)] |
|
|
|
: base(value, overrideState) |
|
|
|
{ |
|
|
|
} |
|
|
|
: base(value, overrideState) { } |
|
|
|
[Serializable] |
|
|
|
public sealed class FogColorParameter : VolumeParameter<FogColorMode> { } |
|
|
|
[Serializable, DebuggerDisplay(k_DebuggerDisplay)] |
|
|
|
public sealed class FogColorParameter : VolumeParameter<FogColorMode> |
|
|
|
{ |
|
|
|
public FogColorParameter(FogColorMode value, bool overrideState = false) |
|
|
|
: base(value, overrideState) { } |
|
|
|
} |
|
|
|
} |