UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkyAtmosphereSceneProxy.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"
7
11
13
16{
17public:
18
19 // Initialization constructor.
23
24 FLinearColor GetSkyLuminanceFactor() const { return SkyLuminanceFactor; }
25 FLinearColor GetSkyAndAerialPerspectiveLuminanceFactor() const { return SkyAndAerialPerspectiveLuminanceFactor; }
26 float GetAerialPespectiveViewDistanceScale() const { return AerialPespectiveViewDistanceScale; }
27 float GetHeightFogContribution() const { return HeightFogContribution; }
28 float GetAerialPerspectiveStartDepthKm() const { return AerialPerspectiveStartDepthKm; }
29 float GetTraceSampleCountScale() const { return TraceSampleCountScale; }
30
31 const FAtmosphereSetup& GetAtmosphereSetup() const { return AtmosphereSetup; }
32
33 bool IsHoldout() const { return bHoldout; }
34 bool IsRenderedInMainPass() const { return bRenderInMainPass; }
35
36 void UpdateTransform(const FTransform& ComponentTransform, uint8 TranformMode) { AtmosphereSetup.UpdateTransform(ComponentTransform, TranformMode); }
37 void ApplyWorldOffset(const FVector3f& InOffset) { AtmosphereSetup.ApplyWorldOffset((FVector)InOffset); }
38
40
43private:
44
45 FAtmosphereSetup AtmosphereSetup;
46
47 FLinearColor SkyLuminanceFactor;
48 FLinearColor SkyAndAerialPerspectiveLuminanceFactor;
49 float AerialPespectiveViewDistanceScale;
50 float HeightFogContribution;
51 float AerialPerspectiveStartDepthKm;
52 float TraceSampleCountScale;
53 bool bHoldout;
54 bool bRenderInMainPass;
55
56 bool OverrideAtmosphericLight[NUM_ATMOSPHERE_LIGHTS];
57 FVector OverrideAtmosphericLightDirection[NUM_ATMOSPHERE_LIGHTS];
58
60};
61
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define NUM_ATMOSPHERE_LIGHTS
Definition EngineDefines.h:26
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition SkyAtmosphereRendering.h:138
Definition SkyAtmosphereSceneProxy.h:16
void ApplyWorldOffset(const FVector3f &InOffset)
Definition SkyAtmosphereSceneProxy.h:37
FLinearColor GetSkyLuminanceFactor() const
Definition SkyAtmosphereSceneProxy.h:24
float GetAerialPespectiveViewDistanceScale() const
Definition SkyAtmosphereSceneProxy.h:26
FSkyAtmosphereRenderSceneInfo * RenderSceneInfo
Definition SkyAtmosphereSceneProxy.h:42
float GetHeightFogContribution() const
Definition SkyAtmosphereSceneProxy.h:27
float GetAerialPerspectiveStartDepthKm() const
Definition SkyAtmosphereSceneProxy.h:28
ENGINE_API FVector GetAtmosphereLightDirection(int32 AtmosphereLightIndex, const FVector &DefaultDirection) const
Definition SkyAtmosphereComponent.cpp:638
void UpdateTransform(const FTransform &ComponentTransform, uint8 TranformMode)
Definition SkyAtmosphereSceneProxy.h:36
bool bStaticLightingBuilt
Definition SkyAtmosphereSceneProxy.h:41
const FAtmosphereSetup & GetAtmosphereSetup() const
Definition SkyAtmosphereSceneProxy.h:31
bool IsRenderedInMainPass() const
Definition SkyAtmosphereSceneProxy.h:34
ENGINE_API ~FSkyAtmosphereSceneProxy()
Definition SkyAtmosphereComponent.cpp:634
float GetTraceSampleCountScale() const
Definition SkyAtmosphereSceneProxy.h:29
FLinearColor GetSkyAndAerialPerspectiveLuminanceFactor() const
Definition SkyAtmosphereSceneProxy.h:25
bool IsHoldout() const
Definition SkyAtmosphereSceneProxy.h:33
Definition SkyAtmosphereStateStreamImpl.h:23
Definition SkyAtmosphereCommonData.h:18
ENGINE_API void ApplyWorldOffset(const FVector &InOffset)
Definition SkyAtmosphereCommonData.cpp:159
ENGINE_API void UpdateTransform(const FTransform &ComponentTransform, uint8 TranformMode)
Definition SkyAtmosphereCommonData.cpp:164
Definition Color.h:48
Definition SkyAtmosphereStateStream.h:44