Struct LocalVolumetricFogArtistParameters
Artist-friendly Local Volumetric Fog parametrization.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public struct LocalVolumetricFogArtistParameters
Constructors
LocalVolumetricFogArtistParameters(Color, Single, Single)
Constructor.
Declaration
public LocalVolumetricFogArtistParameters(Color color, float _meanFreePath, float _anisotropy)
Parameters
Type | Name | Description |
---|---|---|
Color | color | Single scattering albedo. |
Single | _meanFreePath | Mean free path. |
Single | _anisotropy | Anisotropy. |
Fields
albedo
Single scattering albedo: [0, 1]. Alpha is ignored.
Declaration
[ColorUsage(false)]
public Color albedo
Field Value
Type | Description |
---|---|
Color |
anisotropy
Anisotropy of the phase function: [-1, 1]. Positive values result in forward scattering, and negative values - in backward scattering.
Declaration
[FormerlySerializedAs("asymmetry")]
public float anisotropy
Field Value
Type | Description |
---|---|
Single |
distanceFadeEnd
Distance at which density fading ends.
Declaration
public float distanceFadeEnd
Field Value
Type | Description |
---|---|
Single |
distanceFadeStart
Distance at which density fading starts.
Declaration
public float distanceFadeStart
Field Value
Type | Description |
---|---|
Single |
falloffMode
When Blend Distance is above 0, controls which kind of falloff is applied to the transition area.
Declaration
public LocalVolumetricFogFalloffMode falloffMode
Field Value
Type | Description |
---|---|
LocalVolumetricFogFalloffMode |
invertFade
Inverts the fade gradient.
Declaration
public bool invertFade
Field Value
Type | Description |
---|---|
Boolean |
meanFreePath
Mean free path, in meters: [1, inf].
Declaration
public float meanFreePath
Field Value
Type | Description |
---|---|
Single |
negativeFade
Edge fade factor along the negative X, Y and Z axes.
Declaration
[FormerlySerializedAs("m_NegativeFade")]
public Vector3 negativeFade
Field Value
Type | Description |
---|---|
Vector3 |
positiveFade
Edge fade factor along the positive X, Y and Z axes.
Declaration
[FormerlySerializedAs("m_PositiveFade")]
public Vector3 positiveFade
Field Value
Type | Description |
---|---|
Vector3 |
size
Dimensions of the volume.
Declaration
public Vector3 size
Field Value
Type | Description |
---|---|
Vector3 |
textureOffset
Allows translation of the tiling density texture.
Declaration
[SerializeField]
[FormerlySerializedAs("volumeScrollingAmount")]
public Vector3 textureOffset
Field Value
Type | Description |
---|---|
Vector3 |
textureScrollingSpeed
Scrolling speed of the density texture.
Declaration
public Vector3 textureScrollingSpeed
Field Value
Type | Description |
---|---|
Vector3 |
textureTiling
Tiling rate of the density texture.
Declaration
public Vector3 textureTiling
Field Value
Type | Description |
---|---|
Vector3 |
volumeMask
Texture containing density values.
Declaration
public Texture volumeMask
Field Value
Type | Description |
---|---|
Texture |
Properties
advancedFade
Obsolete, do not use.
Declaration
[Obsolete("Never worked correctly due to having engine working in percent. Will be removed soon.")]
public readonly bool advancedFade { get; }
Property Value
Type | Description |
---|---|
Boolean |