Navigation
API > API/Runtime > API/Runtime/Engine
Used to create fogging effects such as clouds but with a density that is related to the height of the fog.
| Name | UExponentialHeightFogComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/ExponentialHeightFogComponent.h |
| Include Path | #include "Components/ExponentialHeightFogComponent.h" |
Syntax
UCLASS (ClassGroup=Rendering, CollapseCategories, HideCategories=(Object, Mobility), EditInlineNew,
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UExponentialHeightFogComponent : public USceneComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UExponentialHeightFogComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UExponentialHeightFogComponent
(
const FObjectInitializer& ObjectInitializer |
Components/ExponentialHeightFogComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnableVolumetricFog | bool | Whether to enable Volumetric fog. | Components/ExponentialHeightFogComponent.h |
|
| bHoldout | uint8 | If this is True, this primitive will render black with an alpha of 0, but all secondary effects (shadows, reflections, indirect lighting) remain. | Components/ExponentialHeightFogComponent.h |
|
| bOverrideLightColorsWithFogInscatteringColors | bool | Whether to use FogInscatteringColor for the Sky Light volumetric scattering color and DirectionalInscatteringColor for the Directional Light scattering color. | Components/ExponentialHeightFogComponent.h |
|
| bRenderInMainPass | uint8 | If true, this component will be rendered in the main pass (basepass, transparency) | Components/ExponentialHeightFogComponent.h |
|
| bVisibleInRealTimeSkyCaptures | uint8 | If true, this component will be visible in real-time sky light reflection captures. | Components/ExponentialHeightFogComponent.h |
|
| bVisibleInReflectionCaptures | uint8 | If true, this component will be visible in reflection captures. | Components/ExponentialHeightFogComponent.h |
|
| DirectionalInscatteringExponent | float | Controls the size of the directional inscattering cone, which is used to approximate inscattering from a directional light. | Components/ExponentialHeightFogComponent.h |
|
| DirectionalInscatteringLuminance | FLinearColor | Controls the color of the directional inscattering, which is used to approximate inscattering from a directional light. | Components/ExponentialHeightFogComponent.h |
|
| DirectionalInscatteringStartDistance | float | Controls the start distance from the viewer of the directional inscattering, which is used to approximate inscattering from a directional light. | Components/ExponentialHeightFogComponent.h |
|
| EndDistance | float | Distance from the camera, on the horizontal XY plane, that the fog will end integrating the lighting and transmittance. | Components/ExponentialHeightFogComponent.h |
|
| FogCutoffDistance | float | Scene elements past this distance will not have fog applied. | Components/ExponentialHeightFogComponent.h |
|
| FogDensity | float | Global density factor. | Components/ExponentialHeightFogComponent.h |
|
| FogHeightFalloff | float | Height density factor, controls how the density increases as height decreases. | Components/ExponentialHeightFogComponent.h |
|
| FogInscatteringLuminance | FLinearColor | Note: when r.SupportExpFogMatchesVolumetricFog = 1, this value is ignored and the volumetric fog Emissive is used instead. | Components/ExponentialHeightFogComponent.h |
|
| FogMaxOpacity | float | Maximum opacity of the fog. | Components/ExponentialHeightFogComponent.h |
|
| FullyDirectionalInscatteringColorDistance | float | Distance at which InscatteringColorCubemap should be used directly for the Inscattering Color. | Components/ExponentialHeightFogComponent.h |
|
| InscatteringColorCubemap | TObjectPtr< class UTextureCube > | Cubemap that can be specified for fog color, which is useful to make distant, heavily fogged scene elements match the sky. | Components/ExponentialHeightFogComponent.h |
|
| InscatteringColorCubemapAngle | float | Angle to rotate the InscatteringColorCubemap around the Z axis. | Components/ExponentialHeightFogComponent.h |
|
| InscatteringTextureTint | FLinearColor | Tint color used when InscatteringColorCubemap is specified, for quick edits without having to reimport InscatteringColorCubemap. | Components/ExponentialHeightFogComponent.h |
|
| NonDirectionalInscatteringColorDistance | float | Distance at which only the average color of InscatteringColorCubemap should be used as Inscattering Color. | Components/ExponentialHeightFogComponent.h |
|
| SecondFogData | FExponentialHeightFogData | Settings for the second fog. Setting the density of this to 0 means it doesn't have any influence. | Components/ExponentialHeightFogComponent.h |
|
| SkyAtmosphereAmbientContributionColorScale | FLinearColor | Color used to modulate the SkyAtmosphere component contribution to the non directional component of the fog. | Components/ExponentialHeightFogComponent.h |
|
| StartDistance | float | Distance from the camera that the fog will start, in world units. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogAlbedo | FColor | The height fog particle reflectiveness used by volumetric fog. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogDistance | float | Distance over which volumetric fog should be computed, after the start distance. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogEmissive | FLinearColor | Light emitted by height fog. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogExtinctionScale | float | Scales the height fog particle extinction amount used by volumetric fog. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogNearFadeInDistance | float | Distance over which volumetric fog will fade in from the start distance. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogScatteringDistribution | float | Controls the scattering phase function - how much incoming light scatters in various directions. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogStartDistance | float | Distance from the camera that the volumetric fog will start, in world units. | Components/ExponentialHeightFogComponent.h |
|
| VolumetricFogStaticLightingScatteringIntensity | float | Components/ExponentialHeightFogComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetDirectionalInscatteringColor
(
FLinearColor Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetDirectionalInscatteringExponent
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetDirectionalInscatteringStartDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetEndDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFogCutoffDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFogDensity
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFogHeightFalloff
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFogInscatteringColor
(
FLinearColor Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFogMaxOpacity
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetFullyDirectionalInscatteringColorDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetHoldout
(
bool bNewHoldout |
Components/ExponentialHeightFogComponent.h |
|
|
void SetInscatteringColorCubemap
(
UTextureCube* Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetInscatteringColorCubemapAngle
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetInscatteringTextureTint
(
FLinearColor Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetNonDirectionalInscatteringColorDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetRenderInMainPass
(
bool bValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetSecondFogData
(
FExponentialHeightFogData NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetSecondFogDensity
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetSecondFogHeightFalloff
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetSecondFogHeightOffset
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetSkyAtmosphereAmbientContributionColorScale
(
FLinearColor NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetStartDistance
(
float Value |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFog
(
bool bNewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogAlbedo
(
FColor NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogDistance
(
float NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogEmissive
(
FLinearColor NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogExtinctionScale
(
float NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogNearFadeInDistance
(
float NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogScatteringDistribution
(
float NewValue |
Components/ExponentialHeightFogComponent.h |
|
|
void SetVolumetricFogStartDistance
(
float NewValue |
Components/ExponentialHeightFogComponent.h |
|
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
Components/ExponentialHeightFogComponent.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Components/ExponentialHeightFogComponent.h | ||
virtual void Serialize
(
FArchive& Ar |
Components/ExponentialHeightFogComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddFogIfNeeded() |
Components/ExponentialHeightFogComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CreateRenderState_Concurrent
(
FRegisterComponentContext* Context |
Used to create any rendering thread information for this component | Components/ExponentialHeightFogComponent.h | |
virtual void DestroyRenderState_Concurrent () |
Used to shut down any rendering thread structure for this component | Components/ExponentialHeightFogComponent.h | |
virtual void SendRenderTransform_Concurrent () |
Called to send a transform update for this component to the rendering thread | Components/ExponentialHeightFogComponent.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DirectionalInscatteringColor_DEPRECATED | FLinearColor | Components/ExponentialHeightFogComponent.h | ||
| FogInscatteringColor_DEPRECATED | FLinearColor | Components/ExponentialHeightFogComponent.h |