Struct DensityVolumeArtistParameters
Artist-friendly density volume parametrization.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
public struct DensityVolumeArtistParameters
Constructors
DensityVolumeArtistParameters(Color, Single, Single)
Constructor.
Declaration
public DensityVolumeArtistParameters(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
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
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 |
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
public Vector3 negativeFade
Field Value
Type | Description |
---|---|
Vector3 |
positiveFade
Edge fade factor along the positive X, Y and Z axes.
Declaration
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
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 Texture3D volumeMask
Field Value
Type | Description |
---|---|
Texture3D |
Properties
advancedFade
Obsolete, do not use.
Declaration
public bool advancedFade { get; }
Property Value
Type | Description |
---|---|
Boolean |