Class DiffusionProfileSettingsParameter
A Unity
Inheritance
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
public sealed class DiffusionProfileSettingsParameter : VolumeParameter<DiffusionProfileSettings[]>, ICloneable, IEquatable<VolumeParameter<DiffusionProfileSettings[]>>
Constructors
DiffusionProfileSettingsParameter(DiffusionProfileSettings[], bool)
Creates a new Diffusion
Declaration
public DiffusionProfileSettingsParameter(DiffusionProfileSettings[] value, bool overrideState = true)
Parameters
Type | Name | Description |
---|---|---|
Diffusion |
value | The initial value to store in the parameter. |
bool | overrideState | The initial override state for the parameter. |
Methods
Interp(DiffusionProfileSettings[], DiffusionProfileSettings[], float)
Interpolates two values using a factor t
.
Declaration
public override void Interp(DiffusionProfileSettings[] from, DiffusionProfileSettings[] to, float t)
Parameters
Type | Name | Description |
---|---|---|
Diffusion |
from | The start value. |
Diffusion |
to | The end value. |
float | t | The interpolation factor in range [0,1]. |
Overrides
Remarks
By default, this method does a "snap" interpolation, meaning it returns the value
to
if t
is higher than 0, and from
otherwise.
Release()
Override this method to free all allocated resources
Declaration
public override void Release()
Overrides
SetValue(VolumeParameter)
Sets the value of this parameter to the value in parameter
.
Implemented explicitly for DiffusionProfileList because we have internal state to copy.
Declaration
public override void SetValue(VolumeParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
Volume |
parameter | The Unity |