UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExponentialHeightFogStateStream.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "EngineDefines.h"
10#include "ExponentialHeightFogStateStream.generated.h"
11
12class UTextureCube;
13
16
18
24
25
27
30{
32
33// private: // Should be private but complicates some of the code that needs support both this path and UComponent path
34
35 UPROPERTY()
36 float FogDensity = 0.0f;
37 UPROPERTY()
38 float FogHeightFalloff = 0.0f;
39 UPROPERTY()
41 UPROPERTY()
42 FLinearColor FogInscatteringLuminance = FLinearColor::White;
43 UPROPERTY()
44 FLinearColor SkyAtmosphereAmbientContributionColorScale = FLinearColor::White;
45 UPROPERTY()
46 TObjectPtr<UTextureCube> InscatteringColorCubemap;
47 UPROPERTY()
48 float InscatteringColorCubemapAngle = 0.0f;
49 UPROPERTY()
50 FLinearColor InscatteringTextureTint = FLinearColor::White;
51 UPROPERTY()
52 float FullyDirectionalInscatteringColorDistance = 0.0f;
53 UPROPERTY()
54 float NonDirectionalInscatteringColorDistance = 0.0f;
55 UPROPERTY()
56 float DirectionalInscatteringExponent = 0.0f;
57 UPROPERTY()
58 float DirectionalInscatteringStartDistance = 0.0f;
59 UPROPERTY()
60 FLinearColor DirectionalInscatteringLuminance = FLinearColor::White;
61 UPROPERTY()
62 float FogMaxOpacity = 0.0f;
63 UPROPERTY()
64 float StartDistance = 0.0f;
65 UPROPERTY()
66 float EndDistance = 0.0f;
67 UPROPERTY()
68 float FogCutoffDistance = 0.0f;
69 UPROPERTY()
70 bool bEnableVolumetricFog = false;
71 UPROPERTY()
72 float VolumetricFogScatteringDistribution = 0.0f;
73 UPROPERTY()
74 FColor VolumetricFogAlbedo = FColor::White;
75 UPROPERTY()
76 FLinearColor VolumetricFogEmissive = FLinearColor::White;
77 UPROPERTY()
78 float VolumetricFogExtinctionScale = 0.0f;
79 UPROPERTY()
80 float VolumetricFogDistance = 0.0f;
81 UPROPERTY()
82 float VolumetricFogStartDistance = 0.0f;
83 UPROPERTY()
84 float VolumetricFogNearFadeInDistance = 0.0f;
85 UPROPERTY()
86 float VolumetricFogStaticLightingScatteringIntensity = 0.0f;
87 UPROPERTY()
88 bool bOverrideLightColorsWithFogInscatteringColors = false;
89 UPROPERTY()
90 uint8 bHoldout : 1 = false;
91 UPROPERTY()
92 uint8 bRenderInMainPass : 1 = false;
93 UPROPERTY()
94 uint8 bVisibleInReflectionCaptures : 1 = false;
95 UPROPERTY()
96 uint8 bVisibleInRealTimeSkyCaptures : 1 = false;
97 UPROPERTY()
98 float Height = 0.0f;
99};
100
102
104
105
107
114
116
118{
119 return A.FogDensity == B.FogDensity && A.FogHeightFalloff == B.FogHeightFalloff && A.FogHeightOffset == B.FogHeightOffset;
120}
121
128
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void StateStreamInterpolate(FStateStreamInterpolateContext &Context, FExponentialHeightFogData &Out, const FExponentialHeightFogData &From, const FExponentialHeightFogData &To)
Definition ExponentialHeightFogStateStream.h:122
bool StateStreamEquals(const FExponentialHeightFogData &A, const FExponentialHeightFogData &B)
Definition ExponentialHeightFogStateStream.h:117
constexpr uint32 ExponentialHeightFogStateStreamId
Definition ExponentialHeightFogStateStream.h:103
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
#define DECLARE_STATESTREAM(Type)
Definition StateStreamDefinitions.h:9
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition ExponentialHeightFogStateStream.h:109
Definition TextureCube.h:15
@ false
Definition radaudio_common.h:23
Definition Color.h:486
Definition ExponentialHeightFogData.h:13
float FogHeightOffset
Definition ExponentialHeightFogData.h:29
float FogDensity
Definition ExponentialHeightFogData.h:18
float FogHeightFalloff
Definition ExponentialHeightFogData.h:25
Definition ExponentialHeightFogStateStream.h:30
Definition ExponentialHeightFogStateStreamHandle.h:15
Definition ExponentialHeightFogStateStream.h:21
Definition Color.h:48
Definition StateStreamDefinitions.h:27
Definition ObjectPtr.h:488