Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- USkyAtmosphereComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkyAtmosphereComponent.h |
| Include | #include "Components/SkyAtmosphereComponent.h" |
Syntax
class USkyAtmosphereComponent : public USceneComponent
Remarks
A component that represents a planet atmosphere material and simulates sky and light scattering within it.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AerialPerspectiveStartDepth | The distance (kilometers) at which we start evaluating the aerial perspective. | |
| float | AerialPespectiveViewDistanceScale | Makes the aerial perspective look thicker by scaling distances from view to surfaces (opaque and translucent). | |
| float | AtmosphereHeight | The height of the atmosphere layer above the ground in kilometers. | |
| bool | bIsAtmosphericFog | When true, this means that this SkyAtmosphere is use as replacement for the deprecated AtmosphericFogComponent as a parent class. | |
| float | BottomRadius | The radius in kilometers from the center of the planet to the ground level. | |
| FColor | GroundAlbedo | The ground albedo that will tint the atmosphere when the sun light will bounce on it. | |
| float | HeightFogContribution | Scale the sky and atmosphere lights contribution to the height fog when SupportSkyAtmosphereAffectsHeightFog project setting is true. | |
| FLinearColor | MieAbsorption | The Mie absorption coefficients resulting from particles in the air at an altitude of 0 kilometer. | |
| float | MieAbsorptionScale | Mie absorption coefficient scale. | |
| float | MieAnisotropy | A value of 0 mean light is uniformly scattered. | |
| float | MieExponentialDistribution | The altitude in kilometer at which Mie effects are reduced to 40%. | |
| FLinearColor | MieScattering | The Mie scattering coefficients resulting from particles in the air at an altitude of 0 kilometer. | |
| float | MieScatteringScale | Mie scattering coefficient scale. | |
| float | MultiScatteringFactor | Factor applied to multiple scattering only (after the sun light has bounced around in the atmosphere at least once). | |
| FLinearColor | OtherAbsorption | Absorption coefficients for another atmosphere layer. | |
| float | OtherAbsorptionScale | Absorption coefficients for another atmosphere layer. | |
| FTentDistribution | OtherTentDistribution | Represents the altitude based tent distribution of absorption particles in the atmosphere. | |
| float | RayleighExponentialDistribution | The altitude in kilometer at which Rayleigh scattering effect is reduced to 40%. | |
| FLinearColor | RayleighScattering | The Rayleigh scattering coefficients resulting from molecules in the air at an altitude of 0 kilometer. | |
| float | RayleighScatteringScale | Rayleigh scattering coefficient scale. | |
| FLinearColor | SkyLuminanceFactor | Scales the luminance of pixels representing the sky. This will impact the captured sky light. | |
| float | TraceSampleCountScale | Scale the atmosphere tracing sample count. | |
| ESkyAtmosphereTransformMode | TransformMode | The ground albedo that will tint the atmosphere when the sun light will bounce on it. | |
| float | TransmittanceMinLightElevationAngle | The minimum elevation angle in degree that should be used to evaluate the sun transmittance to the ground. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USkyAtmosphereComponent
(
const FObjectInitializer& ObjectInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FLinearColor | GetAtmosphereTransmitanceOnGroundAtPlanetTop
(
UDirectionalLightComponent* DirectionalLight |
||
| void | GetOverrideLightStatus
(
bool* OverrideAtmosphericLight, |
||
| FVector | GetOverridenAtmosphereLightDirection
(
int32 AtmosphereLightIndex |
||
| FGuid | |||
| bool | IsAtmosphereLightDirectionOverriden
(
int32 AtmosphereLightIndex |
||
| void | OverrideAtmosphereLightDirection
(
int32 AtmosphereLightIndex, |
||
| void | ResetAtmosphereLightDirectionOverride
(
int32 AtmosphereLightIndex |
||
| void | SetAerialPespectiveViewDistanceScale
(
float NewValue |
||
| void | SetAtmosphereHeight
(
float NewValue |
||
| void | SetBottomRadius
(
float NewValue |
||
| void | SetGroundAlbedo
(
const FColor& NewValue |
||
| void | SetHeightFogContribution
(
float NewValue |
||
| void | SetMieAbsorption
(
FLinearColor NewValue |
||
| void | SetMieAbsorptionScale
(
float NewValue |
||
| void | SetMieAnisotropy
(
float NewValue |
||
| void | SetMieExponentialDistribution
(
float NewValue |
||
| void | SetMieScattering
(
FLinearColor NewValue |
||
| void | SetMieScatteringScale
(
float NewValue |
||
| void | SetMultiScatteringFactor
(
float NewValue |
||
| void | SetOtherAbsorption
(
FLinearColor NewValue |
||
| void | SetOtherAbsorptionScale
(
float NewValue |
||
| void | This is used to position the SkyAtmosphere similarly to the deprecated AtmosphericFog component. | ||
| void | SetRayleighExponentialDistribution
(
float NewValue |
||
| void | SetRayleighScattering
(
FLinearColor NewValue |
||
| void | SetRayleighScatteringScale
(
float NewValue |
||
| void | SetSkyLuminanceFactor
(
FLinearColor NewValue |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | 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. | ||
| void | CreateRenderState_Concurrent
(
FRegisterComponentContext* Context |
Used to create any rendering thread information for this component | |
| void | Used to shut down any rendering thread structure for this component | ||
| void | Called to send a transform update for this component to the rendering thread |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Handles reading, writing, and reference collecting using FArchive. |
See Also
https://docs.unrealengine.com/en-US/Engine/Actors/FogEffects/SkyAtmosphere/index.html