Navigation
API > API/Runtime > API/Runtime/Engine
A component that represents a planet atmosphere material and simulates sky and light scattering within it.
| Name | USkyAtmosphereComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkyAtmosphereComponent.h |
| Include Path | #include "Components/SkyAtmosphereComponent.h" |
Syntax
UCLASS (ClassGroup=Rendering, CollapseCategories,
HideCategories=(Object, Mobility, Activation, "Components|Activation"), EditInlineNew,
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class USkyAtmosphereComponent : public USceneComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → USkyAtmosphereComponent
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USkyAtmosphereComponent
(
const FObjectInitializer& ObjectInitializer |
Components/SkyAtmosphereComponent.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~USkyAtmosphereComponent() |
Components/SkyAtmosphereComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AerialPerspectiveStartDepth | float | The distance (kilometers) at which we start evaluating the aerial perspective. | Components/SkyAtmosphereComponent.h |
|
| AerialPespectiveViewDistanceScale | float | Makes the aerial perspective look thicker by scaling distances from view to surfaces (opaque and translucent). | Components/SkyAtmosphereComponent.h |
|
| AtmosphereHeight | float | The height of the atmosphere layer above the ground in kilometers. | Components/SkyAtmosphereComponent.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/SkyAtmosphereComponent.h |
|
| BottomRadius | float | The radius in kilometers from the center of the planet to the ground level. | Components/SkyAtmosphereComponent.h |
|
| bRenderInMainPass | uint8 | If true, this component will be rendered in the main pass (basepass, transparency) | Components/SkyAtmosphereComponent.h |
|
| GroundAlbedo | FColor | The ground albedo that will tint the atmosphere when the sun light will bounce on it. | Components/SkyAtmosphereComponent.h |
|
| HeightFogContribution | float | Scale the sky and atmosphere lights contribution to the height fog when SupportSkyAtmosphereAffectsHeightFog project setting is true. | Components/SkyAtmosphereComponent.h |
|
| MieAbsorption | FLinearColor | The Mie absorption coefficients resulting from particles in the air at an altitude of 0 kilometer. | Components/SkyAtmosphereComponent.h |
|
| MieAbsorptionScale | float | Mie absorption coefficient scale. | Components/SkyAtmosphereComponent.h |
|
| MieAnisotropy | float | A value of 0 mean light is uniformly scattered. | Components/SkyAtmosphereComponent.h |
|
| MieExponentialDistribution | float | The altitude in kilometer at which Mie effects are reduced to 40%. | Components/SkyAtmosphereComponent.h |
|
| MieScattering | FLinearColor | The Mie scattering coefficients resulting from particles in the air at an altitude of 0 kilometer. | Components/SkyAtmosphereComponent.h |
|
| MieScatteringScale | float | Mie scattering coefficient scale. | Components/SkyAtmosphereComponent.h |
|
| MultiScatteringFactor | float | Factor applied to multiple scattering only (after the sun light has bounced around in the atmosphere at least once). | Components/SkyAtmosphereComponent.h |
|
| OtherAbsorption | FLinearColor | Absorption coefficients for another atmosphere layer. | Components/SkyAtmosphereComponent.h |
|
| OtherAbsorptionScale | float | Absorption coefficients for another atmosphere layer. | Components/SkyAtmosphereComponent.h |
|
| OtherTentDistribution | FTentDistribution | Represents the altitude based tent distribution of absorption particles in the atmosphere. | Components/SkyAtmosphereComponent.h |
|
| RayleighExponentialDistribution | float | The altitude in kilometer at which Rayleigh scattering effect is reduced to 40%. | Components/SkyAtmosphereComponent.h |
|
| RayleighScattering | FLinearColor | The Rayleigh scattering coefficients resulting from molecules in the air at an altitude of 0 kilometer. | Components/SkyAtmosphereComponent.h |
|
| RayleighScatteringScale | float | Rayleigh scattering coefficient scale. | Components/SkyAtmosphereComponent.h |
|
| SkyAndAerialPerspectiveLuminanceFactor | FLinearColor | Scales the luminance of pixels representing the sky and the aerial perspective. | Components/SkyAtmosphereComponent.h |
|
| SkyLuminanceFactor | FLinearColor | Scales the luminance of pixels representing the sky. This will impact the captured sky light. | Components/SkyAtmosphereComponent.h |
|
| TraceSampleCountScale | float | Scale the atmosphere tracing sample count. | Components/SkyAtmosphereComponent.h |
|
| TransformMode | ESkyAtmosphereTransformMode | The ground albedo that will tint the atmosphere when the sun light will bounce on it. | Components/SkyAtmosphereComponent.h |
|
| TransmittanceMinLightElevationAngle | float | The minimum elevation angle in degree that should be used to evaluate the sun transmittance to the ground. | Components/SkyAtmosphereComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bStaticLightingBuiltGUID | FGuid | GUID used to associate a atmospheric component with precomputed lighting/shadowing information across levels. | Components/SkyAtmosphereComponent.h | |
| OverrideAtmosphericLight | bool | Components/SkyAtmosphereComponent.h | ||
| OverrideAtmosphericLightDirection | FVector | Components/SkyAtmosphereComponent.h | ||
| SkyAtmosphereSceneProxy | FSkyAtmosphereSceneProxy * | Components/SkyAtmosphereComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearColor GetAtmosphereTransmitanceOnGroundAtPlanetTop
(
UDirectionalLightComponent* DirectionalLight |
Components/SkyAtmosphereComponent.h |
|
|
float GetAtmosphericLightToMatchIlluminanceOnGround
(
FVector LightDirection, |
This function can be used for instance in order to evaluate a directional atmospheric light outer space illuminance for a desired illuminance on ground given a direction. | Components/SkyAtmosphereComponent.h |
|
void GetOverrideLightStatus
(
bool* OverrideAtmosphericLight, |
Components/SkyAtmosphereComponent.h | ||
FVector GetOverridenAtmosphereLightDirection
(
int32 AtmosphereLightIndex |
Components/SkyAtmosphereComponent.h |
|
|
FGuid GetStaticLightingBuiltGuid() |
Components/SkyAtmosphereComponent.h | ||
bool IsAtmosphereLightDirectionOverriden
(
int32 AtmosphereLightIndex |
Components/SkyAtmosphereComponent.h |
|
|
void OverrideAtmosphereLightDirection
(
int32 AtmosphereLightIndex, |
Components/SkyAtmosphereComponent.h |
|
|
void ResetAtmosphereLightDirectionOverride
(
int32 AtmosphereLightIndex |
Components/SkyAtmosphereComponent.h |
|
|
void SetAerialPerspectiveStartDepth
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetAerialPespectiveViewDistanceScale
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetAtmosphereHeight
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetBottomRadius
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetGroundAlbedo
(
const FColor& NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetHeightFogContribution
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetHoldout
(
bool bNewHoldout |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieAbsorption
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieAbsorptionScale
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieAnisotropy
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieExponentialDistribution
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieScattering
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMieScatteringScale
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetMultiScatteringFactor
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetOtherAbsorption
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetOtherAbsorptionScale
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetPositionToMatchDeprecatedAtmosphericFog() |
This is used to position the SkyAtmosphere similarly to the deprecated AtmosphericFog component. | Components/SkyAtmosphereComponent.h | |
void SetRayleighExponentialDistribution
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetRayleighScattering
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetRayleighScatteringScale
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetRenderInMainPass
(
bool bValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetSkyAndAerialPerspectiveLuminanceFactor
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetSkyLuminanceFactor
(
FLinearColor NewValue |
Components/SkyAtmosphereComponent.h |
|
|
void SetTransmittanceMinLightElevationAngle
(
float NewValue |
Components/SkyAtmosphereComponent.h |
|
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CheckForErrors () |
Function that gets called from within Map_Check to allow this actor component to check itself for any potential errors and register them with map check dialog. | Components/SkyAtmosphereComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Components/SkyAtmosphereComponent.h | ||
virtual void Serialize
(
FArchive& Ar |
Components/SkyAtmosphereComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetDummyStaticLightingGUIDs() |
Sets a dummy, known static lighting GUID to avoid cook non-determinism when a map contains the deprecated AtmosphericFogComponent. | Components/SkyAtmosphereComponent.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/SkyAtmosphereComponent.h | |
virtual void DestroyRenderState_Concurrent () |
Used to shut down any rendering thread structure for this component | Components/SkyAtmosphereComponent.h | |
virtual void SendRenderTransform_Concurrent () |
Called to send a transform update for this component to the rendering thread | Components/SkyAtmosphereComponent.h |