Class WindOrientationParameter
Wind Orientation parameter.
Inheritance
WindOrientationParameter
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public sealed class WindOrientationParameter : WindParameter, IEquatable<VolumeParameter<WindParameter.WindParamaterValue>>
Constructors
WindOrientationParameter(Single, WindParameter.WindOverrideMode, Boolean)
Wind orientation volume parameter constructor.
Declaration
public WindOrientationParameter(float value = 0F, WindParameter.WindOverrideMode mode = WindParameter.WindOverrideMode.Global, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
Single | value | Sky Ambient Mode parameter. |
WindParameter.WindOverrideMode | mode | Initial override mode. |
Boolean | 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 |
---|---|
Single | 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 |
---|---|
Single | The value for this parameter. |
Overrides
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] |