Class Fog
Fog Volume Component.
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
public class Fog : VolumeComponent
Fields
albedo
Fog albedo.
Declaration
public ColorParameter albedo
Field Value
| Type | Description | 
|---|---|
| ColorParameter | 
anisotropy
Volumetric fog anisotropy.
Declaration
public ClampedFloatParameter anisotropy
Field Value
| Type | Description | 
|---|---|
| ClampedFloatParameter | 
baseHeight
Height fog base height.
Declaration
public FloatParameter baseHeight
Field Value
| Type | Description | 
|---|---|
| FloatParameter | 
color
Fog color.
Declaration
public ColorParameter color
Field Value
| Type | Description | 
|---|---|
| ColorParameter | 
colorMode
Fog color mode.
Declaration
public FogColorParameter colorMode
Field Value
| Type | Description | 
|---|---|
| FogColorParameter | 
depthExtent
Sets the distance (in meters) from the Camera's Near Clipping Plane to the back of the Camera's volumetric lighting buffer.
Declaration
public MinFloatParameter depthExtent
Field Value
| Type | Description | 
|---|---|
| MinFloatParameter | 
enabled
Enable fog.
Declaration
public BoolParameter enabled
Field Value
| Type | Description | 
|---|---|
| BoolParameter | 
enableVolumetricFog
Enable volumetric fog.
Declaration
public BoolParameter enableVolumetricFog
Field Value
| Type | Description | 
|---|---|
| BoolParameter | 
filter
Applies a blur to smoothen the volumetric lighting output.
Declaration
public BoolParameter filter
Field Value
| Type | Description | 
|---|---|
| BoolParameter | 
globalLightProbeDimmer
Multiplier for ambient probe contribution.
Declaration
public ClampedFloatParameter globalLightProbeDimmer
Field Value
| Type | Description | 
|---|---|
| ClampedFloatParameter | 
maxFogDistance
Maximum fog distance.
Declaration
public MinFloatParameter maxFogDistance
Field Value
| Type | Description | 
|---|---|
| MinFloatParameter | 
maximumHeight
Height fog maximum height.
Declaration
public FloatParameter maximumHeight
Field Value
| Type | Description | 
|---|---|
| FloatParameter | 
meanFreePath
Fog mean free path.
Declaration
public MinFloatParameter meanFreePath
Field Value
| Type | Description | 
|---|---|
| MinFloatParameter | 
mipFogFar
Sets the distance at which HDRP uses the maximum mip image of the blurred sky texture as the fog color.
Declaration
public MinFloatParameter mipFogFar
Field Value
| Type | Description | 
|---|---|
| MinFloatParameter | 
mipFogMaxMip
Controls the maximum mip map HDRP uses for mip fog (0 is the lowest mip and 1 is the highest mip).
Declaration
public ClampedFloatParameter mipFogMaxMip
Field Value
| Type | Description | 
|---|---|
| ClampedFloatParameter | 
mipFogNear
Sets the distance at which HDRP uses the minimum mip image of the blurred sky texture as the fog color.
Declaration
public MinFloatParameter mipFogNear
Field Value
| Type | Description | 
|---|---|
| MinFloatParameter | 
sliceDistributionUniformity
Controls the distribution of slices along the Camera's focal axis. 0 is exponential distribution and 1 is linear distribution.
Declaration
public ClampedFloatParameter sliceDistributionUniformity
Field Value
| Type | Description | 
|---|---|
| ClampedFloatParameter | 
tint
Specifies the tint of the fog when using Sky Color.
Declaration
public ColorParameter tint
Field Value
| Type | Description | 
|---|---|
| ColorParameter |