Class WindParameter
Generic wind volume parameter.
Inheritance
UnityEngine.Rendering.VolumeParameter
UnityEngine.Rendering.VolumeParameter<WindParameter.WindParamaterValue>
WindParameter
Inherited Members
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.m_Value
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.Override(UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue)
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.SetValue(UnityEngine.Rendering.VolumeParameter)
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.ToString()
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.Equals(UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>)
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.Equals(System.Object)
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.value
UnityEngine.Rendering.VolumeParameter.k_DebuggerDisplay
UnityEngine.Rendering.VolumeParameter.m_OverrideState
UnityEngine.Rendering.VolumeParameter.GetValue<T>()
UnityEngine.Rendering.VolumeParameter.OnEnable()
UnityEngine.Rendering.VolumeParameter.OnDisable()
UnityEngine.Rendering.VolumeParameter.IsObjectParameter(System.Type)
UnityEngine.Rendering.VolumeParameter.Release()
UnityEngine.Rendering.VolumeParameter.overrideState
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public abstract class WindParameter : VolumeParameter<WindParameter.WindParamaterValue>, IEquatable<VolumeParameter<WindParameter.WindParamaterValue>>
Constructors
WindParameter(Single, WindParameter.WindOverrideMode, Boolean)
Wind volume parameter constructor.
Declaration
public WindParameter(float value = 0F, WindParameter.WindOverrideMode mode = WindParameter.WindOverrideMode.Global, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Single | value | Initial value. |
WindParameter.WindOverrideMode | mode | Initial override mode. |
Boolean | overrideState | Initial override state. |
Methods
GetGlobalValue(HDCamera)
Returns the value stored in the volume.
Declaration
protected abstract float GetGlobalValue(HDCamera camera)
Parameters
Type | Name | Description |
---|---|---|
HDCamera | camera | The camera containing the volume stack to evaluate |
Returns
Type | Description |
---|---|
Single | The value for this parameter. |
GetHashCode()
Returns a hash code for the current object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for the current object. |
Overrides
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.GetHashCode()
GetValue(HDCamera)
Returns interpolated value from the visual environment.
Declaration
public float GetValue(HDCamera camera)
Parameters
Type | Name | Description |
---|---|---|
HDCamera | camera | The camera containing the volume stack to evaluate |
Returns
Type | Description |
---|---|
Single | The value for this parameter. |
Interp(WindParameter.WindParamaterValue, WindParameter.WindParamaterValue, Single)
Interpolates between two values.
Declaration
public override void Interp(WindParameter.WindParamaterValue from, WindParameter.WindParamaterValue to, float t)
Parameters
Type | Name | Description |
---|---|---|
WindParameter.WindParamaterValue | from | The start value |
WindParameter.WindParamaterValue | to | The end value |
Single | t | The interpolation factor in range [0,1] |
Overrides
UnityEngine.Rendering.VolumeParameter<UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue>.Interp(UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue, UnityEngine.Rendering.HighDefinition.WindParameter.WindParamaterValue, System.Single)