Class WindOrientationParameter
Wind Orientation parameter.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
public sealed class WindOrientationParameter : WindParameter, IEquatable<VolumeParameter<WindParameter.WindParamaterValue>>
Constructors
WindOrientationParameter(float, WindOverrideMode, bool)
Wind orientation volume parameter constructor.
Declaration
public WindOrientationParameter(float value = 0, WindParameter.WindOverrideMode mode = WindOverrideMode.Global, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
float | value | Sky Ambient Mode parameter. |
Wind |
mode | Initial override mode. |
bool | overrideState | Initial override value. |
Methods
GetGlobalValue(HDCamera)
Returns the value stored in the volume.
Declaration
protected override float GetGlobalValue(HDCamera camera)
Parameters
Type | Name | Description |
---|---|---|
HDCamera | camera | The camera containing the volume stack to evaluate |
Returns
Type | Description |
---|---|
float | The value for this parameter. |
Overrides
GetValue(HDCamera)
Returns interpolated value from the visual environment.
Declaration
public override float GetValue(HDCamera camera)
Parameters
Type | Name | Description |
---|---|---|
HDCamera | camera | The camera containing the volume stack to evaluate |
Returns
Type | Description |
---|---|
float | The value for this parameter. |
Overrides
Interp(WindParamaterValue, WindParamaterValue, float)
Interpolates between two values.
Declaration
public override void Interp(WindParameter.WindParamaterValue from, WindParameter.WindParamaterValue to, float t)
Parameters
Type | Name | Description |
---|---|---|
Wind |
from | The start value |
Wind |
to | The end value |
float | t | The interpolation factor in range [0,1] |