Skybase slight change

This commit is contained in:
Antonio Mata 2024-05-30 13:13:11 +02:00 committed by Blyron
parent 605817e1b8
commit d23363c2f9
1 changed files with 15 additions and 8 deletions

View File

@ -10,20 +10,27 @@
ASkyBase::ASkyBase(
const FObjectInitializer& ObjectInitializer) :
Super(ObjectInitializer),
PostProcessComponent(nullptr),
ExponentialHeightFogComponent(nullptr),
DirectionalLightComponentSun(nullptr),
DirectionalLightComponentMoon(nullptr),
SkyLightComponent(nullptr),
VolumetricCloudComponent(nullptr),
SkyAtmosphereComponent(nullptr)
Super(ObjectInitializer)
{
PostProcessComponent = CreateDefaultSubobject<UPostProcessComponent>("PostProcessComponent");
RootComponent = PostProcessComponent;
ExponentialHeightFogComponent = CreateDefaultSubobject<UExponentialHeightFogComponent>("ExponentialHeightFogComponent");
ExponentialHeightFogComponent->SetupAttachment(RootComponent);
DirectionalLightComponentSun = CreateDefaultSubobject<UDirectionalLightComponent>("DirectionalLightComponentSun");
DirectionalLightComponentSun->SetupAttachment(RootComponent);
DirectionalLightComponentMoon = CreateDefaultSubobject<UDirectionalLightComponent>("DirectionalLightComponentMoon");
DirectionalLightComponentMoon->SetupAttachment(RootComponent);
SkyLightComponent = CreateDefaultSubobject<USkyLightComponent>("SkyLightComponent");
SkyLightComponent->SetupAttachment(RootComponent);
VolumetricCloudComponent = CreateDefaultSubobject<UVolumetricCloudComponent>("VolumetricCloudComponent");
VolumetricCloudComponent->SetupAttachment(RootComponent);
SkyAtmosphereComponent = CreateDefaultSubobject<USkyAtmosphereComponent>("SkyAtmosphereComponent");
SkyAtmosphereComponent->SetupAttachment(RootComponent);
}