UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExponentialHeightFogComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
11#include "ExponentialHeightFogComponent.generated.h"
12
16UCLASS(ClassGroup=Rendering, collapsecategories, hidecategories=(Object, Mobility), editinlinenew, meta=(BlueprintSpawnableComponent), MinimalAPI)
17class UExponentialHeightFogComponent : public USceneComponent
18{
20
21
22 UPROPERTY(BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta=(UIMin = "0", UIMax = ".05"))
23 float FogDensity;
24
29 UPROPERTY(BlueprintReadOnly, interp, Category = ExponentialHeightFogComponent, meta = (UIMin = "0.001", UIMax = "2"))
30 float FogHeightFalloff;
31
33 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=ExponentialHeightFogComponent)
34 FExponentialHeightFogData SecondFogData;
35
36 UPROPERTY()
38
42 UPROPERTY(BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta = (DisplayName = "Fog Inscattering Color"))
43 FLinearColor FogInscatteringLuminance;
44
46 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = ExponentialHeightFogComponent)
47 FLinearColor SkyAtmosphereAmbientContributionColorScale;
48
53 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=InscatteringTexture)
54 TObjectPtr<class UTextureCube> InscatteringColorCubemap;
55
57 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=InscatteringTexture, meta=(UIMin = "0", UIMax = "360"))
58 float InscatteringColorCubemapAngle;
59
61 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=InscatteringTexture)
62 FLinearColor InscatteringTextureTint;
63
65 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=InscatteringTexture, meta=(UIMin = "1000", UIMax = "1000000"))
66 float FullyDirectionalInscatteringColorDistance;
67
69 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=InscatteringTexture, meta=(UIMin = "1000", UIMax = "1000000"))
70 float NonDirectionalInscatteringColorDistance;
71
78 UPROPERTY(BlueprintReadOnly, interp, Category=DirectionalInscattering, meta=(UIMin = "2", UIMax = "64"))
79 float DirectionalInscatteringExponent;
80
87 UPROPERTY(BlueprintReadOnly, interp, Category=DirectionalInscattering)
88 float DirectionalInscatteringStartDistance;
89
90 UPROPERTY()
92
99 UPROPERTY(BlueprintReadOnly, interp, Category=DirectionalInscattering, meta = (DisplayName = "Directional Inscattering Color"))
100 FLinearColor DirectionalInscatteringLuminance;
101
107 UPROPERTY(BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta=(UIMin = "0", UIMax = "1"))
108 float FogMaxOpacity;
109
111 UPROPERTY(BlueprintReadOnly, interp, Category=ExponentialHeightFogComponent, meta=(UIMin = "0", UIMax = "5000"))
112 float StartDistance;
113
115 UPROPERTY(BlueprintReadOnly, interp, Category = ExponentialHeightFogComponent, meta = (UIMin = "0", UIMax = "500000"))
116 float EndDistance;
117
119 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=ExponentialHeightFogComponent, meta=(UIMin = "100000", UIMax = "20000000"))
120 float FogCutoffDistance;
121
127 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Volumetric Fog"))
128 bool bEnableVolumetricFog;
129
135 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Scattering Distribution", UIMin = "-.9", UIMax = ".9"))
136 float VolumetricFogScatteringDistribution;
137
142 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Albedo"))
143 FColor VolumetricFogAlbedo;
144
150 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Emissive"))
151 FLinearColor VolumetricFogEmissive;
152
154 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Extinction Scale", UIMin = ".1", UIMax = "10"))
155 float VolumetricFogExtinctionScale;
156
160 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "View Distance", UIMin = "1000", UIMax = "10000"))
161 float VolumetricFogDistance;
162
166 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category= VolumetricFog, meta=(DisplayName = "Start Distance", UIMin = "0", UIMax = "5000"))
167 float VolumetricFogStartDistance;
168
172 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Near Fade In Distance", UIMin = "0", UIMax = "1000"))
173 float VolumetricFogNearFadeInDistance;
174
175 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, meta=(DisplayName = "Static Lighting Scattering Intensity", UIMin = "0", UIMax = "10"))
176 float VolumetricFogStaticLightingScatteringIntensity;
177
183 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = VolumetricFog, AdvancedDisplay)
184 bool bOverrideLightColorsWithFogInscatteringColors;
185
187 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadOnly, Category = Rendering, Interp)
188 uint8 bHoldout : 1;
189
191 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadOnly, Category = Rendering)
192 uint8 bRenderInMainPass : 1;
193
195 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadOnly, Category = Rendering)
196 uint8 bVisibleInReflectionCaptures : 1;
197
199 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadOnly, Category = Rendering)
200 uint8 bVisibleInRealTimeSkyCaptures : 1;
201
202
203public:
204 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
205 ENGINE_API void SetFogDensity(float Value);
206
207 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
209
210 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
212
213 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
215
216 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
218
219 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
221
222 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
224
225 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
227
228 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
230
231 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
233
234 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
236
237 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
239
240 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
242
243 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
245
246 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
248
249 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
251
252 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
253 ENGINE_API void SetEndDistance(float Value);
254
255 UFUNCTION(BlueprintCallable, Category="Rendering|Components|ExponentialHeightFog")
257
258 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
260
261 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
263
264 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
265 ENGINE_API void SetVolumetricFogExtinctionScale(float NewValue);
266
267 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
269
270 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
272
273 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
274 ENGINE_API void SetVolumetricFogDistance(float NewValue);
275
276 UFUNCTION(BlueprintCallable, Category = "Rendering|VolumetricFog")
277 ENGINE_API void SetVolumetricFogStartDistance(float NewValue);
278
279 UFUNCTION(BlueprintCallable, Category = "Rendering|VolumetricFog")
281
282 UFUNCTION(BlueprintCallable, Category="Rendering|VolumetricFog")
284
285 UFUNCTION(BlueprintCallable, Category = "Rendering")
287
288 UFUNCTION(BlueprintCallable, Category = "Rendering")
289 ENGINE_API void SetRenderInMainPass(bool bValue);
290
291 UFUNCTION(BlueprintCallable, Category="Rendering|DirectionalInscattering")
293
295 //~ Begin UActorComponent Interface.
296 ENGINE_API virtual void CreateRenderState_Concurrent(FRegisterComponentContext* Context) override;
297 ENGINE_API virtual void SendRenderTransform_Concurrent() override;
298 ENGINE_API virtual void DestroyRenderState_Concurrent() override;
299 //~ End UActorComponent Interface.
300
302
303 #if WITH_STATE_STREAM_ACTOR
305 #endif
306
307public:
308 //~ Begin UObject Interface
309#if WITH_EDITOR
310 ENGINE_API virtual bool CanEditChange(const FProperty* InProperty) const override;
311 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
312#endif // WITH_EDITOR
313 ENGINE_API virtual void Serialize(FArchive& Ar) override;
314 //~ End UObject Interface
315};
316
317
ENGINE_API void SetStartDistance(float NewStartDistance)
Definition AtmosphericFogComponent.h:61
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Archive.h:1208
Definition UnrealType.h:174
Definition ActorComponent.h:47
Definition TextureCube.h:15
Definition Color.h:486
Definition ExponentialHeightFogData.h:13
Definition ExponentialHeightFogStateStreamHandle.h:15
Definition Color.h:48
Definition UnrealType.h:6865
Definition ObjectPtr.h:488