CARLA
Loading...
Searching...
No Matches
Functions | Variables
Weather.cpp File Reference
#include "Carla/Weather/Weather.h"
#include "Carla.h"
#include "Carla/Game/CarlaEpisode.h"
#include "Carla/Game/CarlaStatics.h"
#include "Carla/Lights/CarlaLightSubsystem.h"
#include "Carla/Recorder/CarlaRecorder.h"
#include "Carla/Recorder/CarlaRecorderWeather.h"
#include "Carla/Sensor/SceneCaptureCamera.h"
#include "Carla/Weather/Sky.h"
#include <util/ue-header-guard-begin.h>
#include "Camera/PlayerCameraManager.h"
#include "Particles/ParticleSystem.h"
#include "Particles/ParticleSystemComponent.h"
#include "EngineUtils.h"
#include "Components/ExponentialHeightFogComponent.h"
#include "Components/ChildActorComponent.h"
#include "Components/MeshComponent.h"
#include "Components/DirectionalLightComponent.h"
#include "Components/SkyAtmosphereComponent.h"
#include "Components/LightComponent.h"
#include "Components/PostProcessComponent.h"
#include "Components/SceneCaptureComponent2D.h"
#include "Components/SkyLightComponent.h"
#include "Components/StaticMeshComponent.h"
#include "Components/VolumetricCloudComponent.h"
#include "Curves/CurveFloat.h"
#include "Engine/StaticMesh.h"
#include "Engine/TextureCube.h"
#include "Engine/World.h"
#include "HAL/IConsoleManager.h"
#include "Kismet/GameplayStatics.h"
#include "Kismet/KismetMaterialLibrary.h"
#include "Materials/MaterialInstanceDynamic.h"
#include "Materials/MaterialParameterCollection.h"
#include "Rendering/SkyAtmosphereCommonData.h"
#include "UObject/ConstructorHelpers.h"
#include "UObject/UnrealType.h"
#include <util/ue-header-guard-end.h>

Go to the source code of this file.

Functions

static float ApplyOvercastBlend (float CurveValue, float OvercastValue, float Cloudiness, bool bOnlyDarken, float CurvePeak)
 
static float ApplySunAltitudeFalloff (float CurveValue, float CurvePeak, float SunAltitudeAngle)
 
static float ComputeCloudDeckFactor (float Cloudiness)
 
static float ComputeCloudDeckLightFactor (float Cloudiness)
 
static float ComputeMoonBlend (float SunAltitudeAngle)
 
static float ComputeMoonHaloBlend (float SunAltitudeAngle)
 
static float ComputeNightBlend (float SunAltitudeAngle)
 
static FLinearColor ComputeOvercastNeutralTint (const USkyAtmosphereComponent *Atmosphere, float SunAltitudeAngle, float Cloudiness, float NeutralizeAmount, float &OutIntensityScale)
 
static float ComputeSunTwilightFactor (float SunAltitudeAngle)
 
static FLinearColor ComputeTwilightCloudScale (float SunAltitudeAngle)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherBloomIntensity (TEXT("carla.Weather.BloomIntensity"), 1.0f, TEXT("does not set one, so the sun glows in the viewport. Negative leaves it alone."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherCityGlow (TEXT("carla.Weather.CityGlow"), 0.000002f, TEXT("Night emission of the clouds from city lights (0 off)."), ECVF_Default)
 
static TAutoConsoleVariable< FString > CVarCarlaWeatherCityGlowColor (TEXT("carla.Weather.CityGlowColor"), TEXT("1.0 0.85 0.7"), TEXT("Colour of the city glow on the clouds, \"R G B\"."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherCloudShadowExtentKm (TEXT("carla.Weather.CloudShadowExtentKm"), 10.0f, TEXT("whatever the rig authored."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDayNightBlendDeg (TEXT("carla.Weather.DayNightBlendDeg"), 8.0f, TEXT("spread over. 0 gives a hard switch at the horizon."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckCoverageExponent (TEXT("carla.Weather.DeckCoverageExponent"), 2.0f, TEXT("Power applied to the deck factor for the cloud coverage (BaseNoiseExp) blend."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckExtinctionScale (TEXT("carla.Weather.DeckExtinctionScale"), 0.005f, TEXT("Cloud material ExtinctionScale at Cloudiness 100 (softer deck base). Negative leaves the material's."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckGlow (TEXT("carla.Weather.DeckGlow"), 2.0f, TEXT("Cloud emission at Cloudiness 100 with the sun at its peak (0 off)."), ECVF_Default)
 
static TAutoConsoleVariable< FString > CVarCarlaWeatherDeckGlowColor (TEXT("carla.Weather.DeckGlowColor"), TEXT("1.0 1.0 1.0"), TEXT("Colour of the overcast deck emission, \"R G B\"."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckLightFullCloudiness (TEXT("carla.Weather.DeckLightFullCloudiness"), 84.0f, TEXT("Cloudiness at which the deck's emission and sky light reach their full value."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckNoiseExp (TEXT("carla.Weather.DeckNoiseExp"), 1.0f, TEXT("Cloud material BaseNoiseExp at Cloudiness 100 (lower = more coverage)."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckSkyLightIntensity (TEXT("carla.Weather.DeckSkyLightIntensity"), 1.0f, TEXT("Replaces OvercastSkyLightIntensity at Cloudiness 100 (blended by the deck factor)."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckStartCloudiness (TEXT("carla.Weather.DeckStartCloudiness"), 80.0f, TEXT("Cloudiness at which the clouds start closing into the overcast deck (full at 100)."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckWarpCount (TEXT("carla.Weather.DeckWarpCount"), 1.0f, TEXT("Cloud material domain warp count at Cloudiness 100. Negative leaves the material's."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherDeckWarpSwitch (TEXT("carla.Weather.DeckWarpSwitch"), -1.0f, TEXT("-1: blend the warp count with the deck factor. 0-1: flip it to DeckWarpCount at that deck factor."), ECVF_Default)
 
static TAutoConsoleVariable< bool > CVarCarlaWeatherEnableOvercastClouds (TEXT("carla.Weather.EnableOvercastClouds"), false, TEXT("Billowy overcast one. Set false to always use the plain master instead."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherExposureBias (TEXT("carla.Weather.ExposureBias"), -1.0f, TEXT("Negative leaves the rig's authored value."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherExposureMaxEV (TEXT("carla.Weather.ExposureMaxEV"), -1.0f, TEXT("Above 13 nothing measurably changes."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherFogDensityScale (TEXT("carla.Weather.FogDensityScale"), 0.001f, TEXT("The shipped 0.001 caps the engine at 0.1, too thin for a heavy-rain veil."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpCloudiness (TEXT("carla.Weather.LightingJumpCloudiness"), 30.0f, TEXT("Cloudiness change between two weather pushes that counts as a lighting jump. 0 disables it."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpSettleSeconds (TEXT("carla.Weather.LightingJumpSettleSeconds"), 8.0f, TEXT("World seconds the full Lumen / sky light updates are held after a lighting jump."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpSunDeg (TEXT("carla.Weather.LightingJumpSunDeg"), 5.0f, TEXT("jump and forces Lumen and the sky light capture to update in full. 0 disables it."), ECVF_Default)
 
static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonAtmosphereDisk (TEXT("carla.Weather.MoonAtmosphereDisk"), false, TEXT("textured moon disc (carla.Weather.MoonDisc) replaces it."), ECVF_Default)
 
static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonDisc (TEXT("carla.Weather.MoonDisc"), true, TEXT("Draw the textured moon disc along the moon light's direction."), ECVF_Default)
 
static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonDiscAdditive (TEXT("carla.Weather.MoonDiscAdditive"), true, TEXT("clouds more exactly."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscAngleDeg (TEXT("carla.Weather.MoonDiscAngleDeg"), 2.0f, TEXT("larger reads better on screen."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscBrightnessEndDeg (TEXT("carla.Weather.MoonDiscBrightnessEndDeg"), -4.0f, TEXT("Sun altitude at which the moon disc reaches its night brightness."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscBrightnessStartDeg (TEXT("carla.Weather.MoonDiscBrightnessStartDeg"), 2.0f, TEXT("Sun altitude at which the moon disc starts dimming from its dusk brightness."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscContrast (TEXT("carla.Weather.MoonDiscContrast"), 0.7f, TEXT("Contrast of the moon texture: 1 as authored, 0 flat grey."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscDistanceKm (TEXT("carla.Weather.MoonDiscDistanceKm"), 100.0f, TEXT("the clouds so they cover it. Clamped to MoonDiscSphereFraction of the sphere."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscDuskBrightness (TEXT("carla.Weather.MoonDiscDuskBrightness"), 3000.0f, TEXT("night value between MoonDiscBrightnessStartDeg and MoonDiscBrightnessEndDeg."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscNightBrightness (TEXT("carla.Weather.MoonDiscNightBrightness"), 40.0f, TEXT("around it, the only per-object bloom control there is."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscSphereFraction (TEXT("carla.Weather.MoonDiscSphereFraction"), 0.9f, TEXT("so the sphere never draws in front of it."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonFadeStartDeg (TEXT("carla.Weather.MoonFadeStartDeg"), 10.0f, TEXT("Sun altitude, in degrees, at which the moon starts to fade in."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonFullAltitudeDeg (TEXT("carla.Weather.MoonFullAltitudeDeg"), 0.0f, TEXT("Must be below MoonFadeStartDeg; otherwise the moon switches on hard there."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloEndDeg (TEXT("carla.Weather.MoonHaloEndDeg"), 0.0f, TEXT("Sun altitude at which the night Mie settings are fully applied."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloMieAnisotropy (TEXT("carla.Weather.MoonHaloMieAnisotropy"), -1.0f, TEXT("leaves it as the rig sets it."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloMieScale (TEXT("carla.Weather.MoonHaloMieScale"), 0.1f, TEXT("1 leaves it as the rig sets it."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloStartDeg (TEXT("carla.Weather.MoonHaloStartDeg"), 3.0f, TEXT("MoonHaloMieAnisotropy) start blending in."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonIntensity (TEXT("carla.Weather.MoonIntensity"), 0.5f, TEXT("leave the rig's authored/curve-driven moon intensity untouched."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherMoonMinAltitudeDeg (TEXT("carla.Weather.MoonMinAltitudeDeg"), 20.0f, TEXT("across dusk instead of from below the horizon. 0 is the plain anti-solar point."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherNightSkylightIntensity (TEXT("carla.Weather.NightSkylightIntensity"), 10.0f, TEXT("leave the rig's curve-driven skylight intensity untouched."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastAmbientMaxGain (TEXT("carla.Weather.OvercastAmbientMaxGain"), 3.0f, TEXT("the horizon cannot turn the ambient blue."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastAmbientNeutralize (TEXT("carla.Weather.OvercastAmbientNeutralize"), 0.4f, TEXT("Cloudiness 100 (scaled by Cloudiness). 0 leaves the sky light white."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSkyLightIntensity (TEXT("carla.Weather.OvercastSkyLightIntensity"), 10.0f, TEXT("Cloudiness and clamped so it can only brighten. Negative disables."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSunIntensity (TEXT("carla.Weather.OvercastSunIntensity"), 1200.0f, TEXT("and clamped so it can only darken. Negative disables."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSunNeutralize (TEXT("carla.Weather.OvercastSunNeutralize"), 0.6f, TEXT("at sunset. 0 leaves the sun white."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastThreshold (TEXT("carla.Weather.OvercastThreshold"), 90.0f, TEXT("from the plain cloud master material to the Billowy overcast one."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherRainDeckGlowScale (TEXT("carla.Weather.RainDeckGlowScale"), 0.25f, TEXT("DeckGlow multiplier at Precipitation 100 (1 = rain does not change the deck)."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherRainDeckSkyLightScale (TEXT("carla.Weather.RainDeckSkyLightScale"), 3.0f, TEXT("DeckSkyLightIntensity multiplier at Precipitation 100 (1 = rain does not change it)."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSkyLightIndirectIntensity (TEXT("carla.Weather.SkyLightIndirectIntensity"), 1.0f, TEXT("IndirectLightingIntensity forced on the sky rig's sky light. Negative leaves the rig's value."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereCloudOpacity (TEXT("carla.Weather.SkySphereCloudOpacity"), 0.0f, TEXT("asset's value."), ECVF_Default)
 
static TAutoConsoleVariable< FString > CVarCarlaWeatherSkySphereNightColor (TEXT("carla.Weather.SkySphereNightColor"), TEXT("0.002 0.002 0.0025"), TEXT("else (e.g. \"off\") leaves the sphere's sun-driven colours."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereScale (TEXT("carla.Weather.SkySphereScale"), 10.0f, TEXT("1 leaves it as authored."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereShowDeg (TEXT("carla.Weather.SkySphereShowDeg"), -12.0f, TEXT("atmosphere."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherStarsBrightness (TEXT("carla.Weather.StarsBrightness"), 4.0f, TEXT("the only way to make the stars FAINTER than the 100 the asset ships."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherStreetLightsOnDeg (TEXT("carla.Weather.StreetLightsOnDeg"), 0.8f, TEXT("Sun altitude at or below which street lights are switched on."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunAltitudeFalloff (TEXT("carla.Weather.SunAltitudeFalloff"), 1.0f, TEXT("curve. 1 is fully physical, 0 leaves the rig's curve alone."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunFalloffExponent (TEXT("carla.Weather.SunFalloffExponent"), 0.01f, TEXT("keeps a low sun brighter, 0 disables the falloff."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunHorizonFloor (TEXT("carla.Weather.SunHorizonFloor"), 0.05f, TEXT("value. 0.004 is a real horizon sun's ~400 lux against ~100000 overhead."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunIndirectIntensity (TEXT("carla.Weather.SunIndirectIntensity"), 1.0f, TEXT("IndirectLightingIntensity forced on the sky rig's sun. Negative leaves the rig's value."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightEndDeg (TEXT("carla.Weather.SunTwilightEndDeg"), -10.0f, TEXT("0 or above leaves the rig's hard cut at the horizon."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightEndFraction (TEXT("carla.Weather.SunTwilightEndFraction"), 0.0001f, TEXT("the fade is log-linear in between."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightStartDeg (TEXT("carla.Weather.SunTwilightStartDeg"), 1.0f, TEXT("Sun altitude at which the twilight fade starts, from the sun's value there."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherTransmittanceMinElevationDeg (TEXT("carla.Weather.TransmittanceMinElevationDeg"), 0.0f, TEXT("Values above ~5 light the city as if it were day under a night sky."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherTransmittanceReleaseDeg (TEXT("carla.Weather.TransmittanceReleaseDeg"), -6.0f, TEXT("back to the engine's -90. Between 0 and this it eases off."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherTwilightCloudFullDeg (TEXT("carla.Weather.TwilightCloudFullDeg"), 2.0f, TEXT("Sun altitude at or below which carla.Weather.TwilightCloudScale applies in full."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherTwilightCloudOffDeg (TEXT("carla.Weather.TwilightCloudOffDeg"), 12.0f, TEXT("Sun altitude at or above which the clouds get the sun's full scattering again."), ECVF_Default)
 
static TAutoConsoleVariable< FString > CVarCarlaWeatherTwilightCloudScale (TEXT("carla.Weather.TwilightCloudScale"), TEXT("0.4 0.55 0.8"), TEXT("Sun CloudScatteredLuminanceScale at the horizon, \"R G B\" (\"1 1 1\" off)."), ECVF_Default)
 
static TAutoConsoleVariable< bool > CVarCarlaWeatherVSMInvalidateWhileSunMoves (TEXT("carla.Weather.VSMInvalidateWhileSunMoves"), true, TEXT("changes. 0 leaves it alone."), ECVF_Default)
 
static TAutoConsoleVariable< float > CVarCarlaWeatherVSMSunStillSeconds (TEXT("carla.Weather.VSMSunStillSeconds"), 1.0f, TEXT("pushes of a moving sun, which brought the flicker back."), ECVF_Default)
 
static float GetOvercastSkyLightTarget (float Cloudiness, float Precipitation)
 
static FRotator GLastSunRotation (ForceInitToZero)
 
static void NoteLightingChange (const UWorld *World, float SunAltitude, float Cloudiness)
 
static void NoteSunRotation (const UWorld *World, const FRotator &Rotation)
 
static FLinearColor ParseColorCVar (const TAutoConsoleVariable< FString > &CVar, const FLinearColor &Fallback)
 
static float RainDeckScale (const TAutoConsoleVariable< float > &CVar, float Precipitation)
 
static void ReleaseDirectionalVSMInvalidateIfSunStill (const UWorld *World)
 
static void ReleaseLightingUpdateIfSettled (const UWorld *World)
 
static float SampleCurvePeakAboveHorizon (UCurveFloat *Curve)
 
static void SetForceInvalidateDirectionalVSM (bool bOn)
 
static void SetForceLightingUpdate (bool bOn)
 
static void UpdateMoonDisc (AActor *SkyActor, const USceneComponent *MoonLight, float MoonBlend, float SunAltitudeAngle)
 
static void UpdateMoonHalo (AActor *SkyActor, float HaloBlend)
 

Variables

static bool GForcingDirectionalVSMInvalidate = false
 
static bool GForcingLightingUpdate = false
 
static float GLastPushedCloudiness = TNumericLimits<float>::Max()
 
static float GLastPushedSunAltitude = TNumericLimits<float>::Max()
 
static double GLastSunMoveWorldSeconds = 0.0
 
static const TCHAR * GLightingJumpCVars []
 
static int32 GLightingJumpRestore [UE_ARRAY_COUNT(GLightingJumpCVars)] = {}
 
static const int32 GLightingJumpValues [] = {1, 1, 0}
 
static double GLightingJumpWorldSeconds = 0.0
 

Function Documentation

◆ ApplyOvercastBlend()

static float ApplyOvercastBlend ( float  CurveValue,
float  OvercastValue,
float  Cloudiness,
bool  bOnlyDarken,
float  CurvePeak 
)
static

Definition at line 1073 of file Weather.cpp.

Referenced by AWeather::ApplyWeatherToSkyActor().

◆ ApplySunAltitudeFalloff()

static float ApplySunAltitudeFalloff ( float  CurveValue,
float  CurvePeak,
float  SunAltitudeAngle 
)
static

◆ ComputeCloudDeckFactor()

static float ComputeCloudDeckFactor ( float  Cloudiness)
static

Definition at line 605 of file Weather.cpp.

References CVarCarlaWeatherDeckStartCloudiness().

Referenced by AWeather::ApplyWeatherToSkyActor().

◆ ComputeCloudDeckLightFactor()

static float ComputeCloudDeckLightFactor ( float  Cloudiness)
static

◆ ComputeMoonBlend()

static float ComputeMoonBlend ( float  SunAltitudeAngle)
static

◆ ComputeMoonHaloBlend()

static float ComputeMoonHaloBlend ( float  SunAltitudeAngle)
static

◆ ComputeNightBlend()

static float ComputeNightBlend ( float  SunAltitudeAngle)
static

Definition at line 679 of file Weather.cpp.

References CVarCarlaWeatherDayNightBlendDeg().

Referenced by AWeather::ApplyWeatherToSkyActor().

◆ ComputeOvercastNeutralTint()

static FLinearColor ComputeOvercastNeutralTint ( const USkyAtmosphereComponent *  Atmosphere,
float  SunAltitudeAngle,
float  Cloudiness,
float  NeutralizeAmount,
float &  OutIntensityScale 
)
static

◆ ComputeSunTwilightFactor()

static float ComputeSunTwilightFactor ( float  SunAltitudeAngle)
static

◆ ComputeTwilightCloudScale()

static FLinearColor ComputeTwilightCloudScale ( float  SunAltitudeAngle)
static

◆ CVarCarlaWeatherBloomIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherBloomIntensity ( TEXT("carla.Weather.BloomIntensity")  ,
1.  0f,
TEXT("does not set one, so the sun glows in the viewport. Negative leaves it alone.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherCityGlow()

static TAutoConsoleVariable< float > CVarCarlaWeatherCityGlow ( TEXT("carla.Weather.CityGlow")  ,
0.  000002f,
TEXT("Night emission of the clouds from city lights (0 off).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherCityGlowColor()

static TAutoConsoleVariable< FString > CVarCarlaWeatherCityGlowColor ( TEXT("carla.Weather.CityGlowColor")  ,
TEXT("1.0 0.85 0.7")  ,
TEXT("Colour of the city glow on the clouds, \"R G B\".")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherCloudShadowExtentKm()

static TAutoConsoleVariable< float > CVarCarlaWeatherCloudShadowExtentKm ( TEXT("carla.Weather.CloudShadowExtentKm")  ,
10.  0f,
TEXT("whatever the rig authored.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDayNightBlendDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherDayNightBlendDeg ( TEXT("carla.Weather.DayNightBlendDeg")  ,
8.  0f,
TEXT("spread over. 0 gives a hard switch at the horizon.")  ,
ECVF_Default   
)
static

Referenced by ComputeNightBlend().

◆ CVarCarlaWeatherDeckCoverageExponent()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckCoverageExponent ( TEXT("carla.Weather.DeckCoverageExponent")  ,
2.  0f,
TEXT("Power applied to the deck factor for the cloud coverage (BaseNoiseExp) blend.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckExtinctionScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckExtinctionScale ( TEXT("carla.Weather.DeckExtinctionScale")  ,
0.  005f,
TEXT("Cloud material ExtinctionScale at Cloudiness 100 (softer deck base). Negative leaves the material's.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckGlow()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckGlow ( TEXT("carla.Weather.DeckGlow")  ,
2.  0f,
TEXT("Cloud emission at Cloudiness 100 with the sun at its peak (0 off).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckGlowColor()

static TAutoConsoleVariable< FString > CVarCarlaWeatherDeckGlowColor ( TEXT("carla.Weather.DeckGlowColor")  ,
TEXT("1.0 1.0 1.0")  ,
TEXT("Colour of the overcast deck emission, \"R G B\".")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckLightFullCloudiness()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckLightFullCloudiness ( TEXT("carla.Weather.DeckLightFullCloudiness")  ,
84.  0f,
TEXT("Cloudiness at which the deck's emission and sky light reach their full value.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckNoiseExp()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckNoiseExp ( TEXT("carla.Weather.DeckNoiseExp")  ,
1.  0f,
TEXT("Cloud material BaseNoiseExp at Cloudiness 100 (lower = more coverage).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckSkyLightIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckSkyLightIntensity ( TEXT("carla.Weather.DeckSkyLightIntensity")  ,
1.  0f,
TEXT("Replaces OvercastSkyLightIntensity at Cloudiness 100 (blended by the deck factor).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckStartCloudiness()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckStartCloudiness ( TEXT("carla.Weather.DeckStartCloudiness")  ,
80.  0f,
TEXT("Cloudiness at which the clouds start closing into the overcast deck (full at 100).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckWarpCount()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckWarpCount ( TEXT("carla.Weather.DeckWarpCount")  ,
1.  0f,
TEXT("Cloud material domain warp count at Cloudiness 100. Negative leaves the material's.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherDeckWarpSwitch()

static TAutoConsoleVariable< float > CVarCarlaWeatherDeckWarpSwitch ( TEXT("carla.Weather.DeckWarpSwitch")  ,
-1.  0f,
TEXT("-1: blend the warp count with the deck factor. 0-1: flip it to DeckWarpCount at that deck factor.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherEnableOvercastClouds()

static TAutoConsoleVariable< bool > CVarCarlaWeatherEnableOvercastClouds ( TEXT("carla.Weather.EnableOvercastClouds")  ,
false  ,
TEXT("Billowy overcast one. Set false to always use the plain master instead.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherExposureBias()

static TAutoConsoleVariable< float > CVarCarlaWeatherExposureBias ( TEXT("carla.Weather.ExposureBias")  ,
-1.  0f,
TEXT("Negative leaves the rig's authored value.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherExposureMaxEV()

static TAutoConsoleVariable< float > CVarCarlaWeatherExposureMaxEV ( TEXT("carla.Weather.ExposureMaxEV")  ,
-1.  0f,
TEXT("Above 13 nothing measurably changes.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherFogDensityScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherFogDensityScale ( TEXT("carla.Weather.FogDensityScale")  ,
0.  001f,
TEXT("The shipped 0.001 caps the engine at 0.1, too thin for a heavy-rain veil.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherLightingJumpCloudiness()

static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpCloudiness ( TEXT("carla.Weather.LightingJumpCloudiness")  ,
30.  0f,
TEXT("Cloudiness change between two weather pushes that counts as a lighting jump. 0 disables it.")  ,
ECVF_Default   
)
static

Referenced by NoteLightingChange().

◆ CVarCarlaWeatherLightingJumpSettleSeconds()

static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpSettleSeconds ( TEXT("carla.Weather.LightingJumpSettleSeconds")  ,
8.  0f,
TEXT("World seconds the full Lumen / sky light updates are held after a lighting jump.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherLightingJumpSunDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherLightingJumpSunDeg ( TEXT("carla.Weather.LightingJumpSunDeg")  ,
5.  0f,
TEXT("jump and forces Lumen and the sky light capture to update in full. 0 disables it.")  ,
ECVF_Default   
)
static

Referenced by NoteLightingChange().

◆ CVarCarlaWeatherMoonAtmosphereDisk()

static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonAtmosphereDisk ( TEXT("carla.Weather.MoonAtmosphereDisk")  ,
false  ,
TEXT("textured moon disc (carla.Weather.MoonDisc) replaces it.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherMoonDisc()

static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonDisc ( TEXT("carla.Weather.MoonDisc")  ,
true  ,
TEXT("Draw the textured moon disc along the moon light's direction.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscAdditive()

static TAutoConsoleVariable< bool > CVarCarlaWeatherMoonDiscAdditive ( TEXT("carla.Weather.MoonDiscAdditive")  ,
true  ,
TEXT("clouds more exactly.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscAngleDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscAngleDeg ( TEXT("carla.Weather.MoonDiscAngleDeg")  ,
2.  0f,
TEXT("larger reads better on screen.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscBrightnessEndDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscBrightnessEndDeg ( TEXT("carla.Weather.MoonDiscBrightnessEndDeg")  ,
-4.  0f,
TEXT("Sun altitude at which the moon disc reaches its night brightness.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscBrightnessStartDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscBrightnessStartDeg ( TEXT("carla.Weather.MoonDiscBrightnessStartDeg")  ,
2.  0f,
TEXT("Sun altitude at which the moon disc starts dimming from its dusk brightness.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscContrast()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscContrast ( TEXT("carla.Weather.MoonDiscContrast")  ,
0.  7f,
TEXT("Contrast of the moon texture: 1 as authored, 0 flat grey.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscDistanceKm()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscDistanceKm ( TEXT("carla.Weather.MoonDiscDistanceKm")  ,
100.  0f,
TEXT("the clouds so they cover it. Clamped to MoonDiscSphereFraction of the sphere.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscDuskBrightness()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscDuskBrightness ( TEXT("carla.Weather.MoonDiscDuskBrightness")  ,
3000.  0f,
TEXT("night value between MoonDiscBrightnessStartDeg and MoonDiscBrightnessEndDeg.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscNightBrightness()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscNightBrightness ( TEXT("carla.Weather.MoonDiscNightBrightness")  ,
40.  0f,
TEXT("around it, the only per-object bloom control there is.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonDiscSphereFraction()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonDiscSphereFraction ( TEXT("carla.Weather.MoonDiscSphereFraction")  ,
0.  9f,
TEXT("so the sphere never draws in front of it.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonDisc().

◆ CVarCarlaWeatherMoonFadeStartDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonFadeStartDeg ( TEXT("carla.Weather.MoonFadeStartDeg")  ,
10.  0f,
TEXT("Sun altitude, in degrees, at which the moon starts to fade in.")  ,
ECVF_Default   
)
static

Referenced by ComputeMoonBlend().

◆ CVarCarlaWeatherMoonFullAltitudeDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonFullAltitudeDeg ( TEXT("carla.Weather.MoonFullAltitudeDeg")  ,
0.  0f,
TEXT("Must be below MoonFadeStartDeg; otherwise the moon switches on hard there.")  ,
ECVF_Default   
)
static

Referenced by ComputeMoonBlend().

◆ CVarCarlaWeatherMoonHaloEndDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloEndDeg ( TEXT("carla.Weather.MoonHaloEndDeg")  ,
0.  0f,
TEXT("Sun altitude at which the night Mie settings are fully applied.")  ,
ECVF_Default   
)
static

Referenced by ComputeMoonHaloBlend().

◆ CVarCarlaWeatherMoonHaloMieAnisotropy()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloMieAnisotropy ( TEXT("carla.Weather.MoonHaloMieAnisotropy")  ,
-1.  0f,
TEXT("leaves it as the rig sets it.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonHalo().

◆ CVarCarlaWeatherMoonHaloMieScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloMieScale ( TEXT("carla.Weather.MoonHaloMieScale")  ,
0.  1f,
TEXT("1 leaves it as the rig sets it.")  ,
ECVF_Default   
)
static

Referenced by UpdateMoonHalo().

◆ CVarCarlaWeatherMoonHaloStartDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonHaloStartDeg ( TEXT("carla.Weather.MoonHaloStartDeg")  ,
3.  0f,
TEXT("MoonHaloMieAnisotropy) start blending in."   
)
static

Referenced by ComputeMoonHaloBlend().

◆ CVarCarlaWeatherMoonIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonIntensity ( TEXT("carla.Weather.MoonIntensity")  ,
0.  5f,
TEXT("leave the rig's authored/curve-driven moon intensity untouched.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherMoonMinAltitudeDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherMoonMinAltitudeDeg ( TEXT("carla.Weather.MoonMinAltitudeDeg")  ,
20.  0f,
TEXT("across dusk instead of from below the horizon. 0 is the plain anti-solar point.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherNightSkylightIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherNightSkylightIntensity ( TEXT("carla.Weather.NightSkylightIntensity")  ,
10.  0f,
TEXT("leave the rig's curve-driven skylight intensity untouched.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastAmbientMaxGain()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastAmbientMaxGain ( TEXT("carla.Weather.OvercastAmbientMaxGain")  ,
3.  0f,
TEXT("the horizon cannot turn the ambient blue.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastAmbientNeutralize()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastAmbientNeutralize ( TEXT("carla.Weather.OvercastAmbientNeutralize")  ,
0.  4f,
TEXT("Cloudiness 100 (scaled by Cloudiness). 0 leaves the sky light white.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastSkyLightIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSkyLightIntensity ( TEXT("carla.Weather.OvercastSkyLightIntensity")  ,
10.  0f,
TEXT("Cloudiness and clamped so it can only brighten. Negative disables.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastSunIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSunIntensity ( TEXT("carla.Weather.OvercastSunIntensity")  ,
1200.  0f,
TEXT("and clamped so it can only darken. Negative disables.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastSunNeutralize()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastSunNeutralize ( TEXT("carla.Weather.OvercastSunNeutralize")  ,
0.  6f,
TEXT("at sunset. 0 leaves the sun white.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherOvercastThreshold()

static TAutoConsoleVariable< float > CVarCarlaWeatherOvercastThreshold ( TEXT("carla.Weather.OvercastThreshold")  ,
90.  0f,
TEXT("from the plain cloud master material to the Billowy overcast one.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherRainDeckGlowScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherRainDeckGlowScale ( TEXT("carla.Weather.RainDeckGlowScale")  ,
0.  25f,
TEXT("DeckGlow multiplier at Precipitation 100 (1 = rain does not change the deck).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherRainDeckSkyLightScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherRainDeckSkyLightScale ( TEXT("carla.Weather.RainDeckSkyLightScale")  ,
3.  0f,
TEXT("DeckSkyLightIntensity multiplier at Precipitation 100 (1 = rain does not change it).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSkyLightIndirectIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherSkyLightIndirectIntensity ( TEXT("carla.Weather.SkyLightIndirectIntensity")  ,
1.  0f,
TEXT("IndirectLightingIntensity forced on the sky rig's sky light. Negative leaves the rig's value.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSkySphereCloudOpacity()

static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereCloudOpacity ( TEXT("carla.Weather.SkySphereCloudOpacity")  ,
0.  0f,
TEXT("asset's value.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSkySphereNightColor()

static TAutoConsoleVariable< FString > CVarCarlaWeatherSkySphereNightColor ( TEXT("carla.Weather.SkySphereNightColor")  ,
TEXT("0.002 0.002 0.0025")  ,
TEXT("else (e.g. \"off\") leaves the sphere's sun-driven colours.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSkySphereScale()

static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereScale ( TEXT("carla.Weather.SkySphereScale")  ,
10.  0f,
TEXT("1 leaves it as authored.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSkySphereShowDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherSkySphereShowDeg ( TEXT("carla.Weather.SkySphereShowDeg")  ,
-12.  0f,
TEXT("atmosphere.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherStarsBrightness()

static TAutoConsoleVariable< float > CVarCarlaWeatherStarsBrightness ( TEXT("carla.Weather.StarsBrightness")  ,
4.  0f,
TEXT("the only way to make the stars FAINTER than the 100 the asset ships.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherStreetLightsOnDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherStreetLightsOnDeg ( TEXT("carla.Weather.StreetLightsOnDeg")  ,
0.  8f,
TEXT("Sun altitude at or below which street lights are switched on.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSunAltitudeFalloff()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunAltitudeFalloff ( TEXT("carla.Weather.SunAltitudeFalloff")  ,
1.  0f,
TEXT("curve. 1 is fully physical, 0 leaves the rig's curve alone.")  ,
ECVF_Default   
)
static

Referenced by ApplySunAltitudeFalloff().

◆ CVarCarlaWeatherSunFalloffExponent()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunFalloffExponent ( TEXT("carla.Weather.SunFalloffExponent")  ,
0.  01f,
TEXT("keeps a low sun brighter, 0 disables the falloff.")  ,
ECVF_Default   
)
static

Referenced by ApplySunAltitudeFalloff().

◆ CVarCarlaWeatherSunHorizonFloor()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunHorizonFloor ( TEXT("carla.Weather.SunHorizonFloor")  ,
0.  05f,
TEXT("value. 0.004 is a real horizon sun's ~400 lux against ~100000 overhead.")  ,
ECVF_Default   
)
static

Referenced by ApplySunAltitudeFalloff().

◆ CVarCarlaWeatherSunIndirectIntensity()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunIndirectIntensity ( TEXT("carla.Weather.SunIndirectIntensity")  ,
1.  0f,
TEXT("IndirectLightingIntensity forced on the sky rig's sun. Negative leaves the rig's value.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSunTwilightEndDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightEndDeg ( TEXT("carla.Weather.SunTwilightEndDeg")  ,
-10.  0f,
TEXT("0 or above leaves the rig's hard cut at the horizon.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSunTwilightEndFraction()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightEndFraction ( TEXT("carla.Weather.SunTwilightEndFraction")  ,
0.  0001f,
TEXT("the fade is log-linear in between.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherSunTwilightStartDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherSunTwilightStartDeg ( TEXT("carla.Weather.SunTwilightStartDeg")  ,
1.  0f,
TEXT("Sun altitude at which the twilight fade starts, from the sun's value there.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherTransmittanceMinElevationDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherTransmittanceMinElevationDeg ( TEXT("carla.Weather.TransmittanceMinElevationDeg")  ,
0.  0f,
TEXT("Values above ~5 light the city as if it were day under a night sky.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherTransmittanceReleaseDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherTransmittanceReleaseDeg ( TEXT("carla.Weather.TransmittanceReleaseDeg")  ,
-6.  0f,
TEXT("back to the engine's -90. Between 0 and this it eases off.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherTwilightCloudFullDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherTwilightCloudFullDeg ( TEXT("carla.Weather.TwilightCloudFullDeg")  ,
2.  0f,
TEXT("Sun altitude at or below which carla.Weather.TwilightCloudScale applies in full.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherTwilightCloudOffDeg()

static TAutoConsoleVariable< float > CVarCarlaWeatherTwilightCloudOffDeg ( TEXT("carla.Weather.TwilightCloudOffDeg")  ,
12.  0f,
TEXT("Sun altitude at or above which the clouds get the sun's full scattering again.")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherTwilightCloudScale()

static TAutoConsoleVariable< FString > CVarCarlaWeatherTwilightCloudScale ( TEXT("carla.Weather.TwilightCloudScale")  ,
TEXT("0.4 0.55 0.8")  ,
TEXT("Sun CloudScatteredLuminanceScale at the horizon, \"R G B\" (\"1 1 1\" off).")  ,
ECVF_Default   
)
static

◆ CVarCarlaWeatherVSMInvalidateWhileSunMoves()

static TAutoConsoleVariable< bool > CVarCarlaWeatherVSMInvalidateWhileSunMoves ( TEXT("carla.Weather.VSMInvalidateWhileSunMoves")  ,
true  ,
TEXT("changes. 0 leaves it alone.")  ,
ECVF_Default   
)
static

Referenced by NoteSunRotation().

◆ CVarCarlaWeatherVSMSunStillSeconds()

static TAutoConsoleVariable< float > CVarCarlaWeatherVSMSunStillSeconds ( TEXT("carla.Weather.VSMSunStillSeconds")  ,
1.  0f,
TEXT("pushes of a moving sun, which brought the flicker back.")  ,
ECVF_Default   
)
static

◆ GetOvercastSkyLightTarget()

static float GetOvercastSkyLightTarget ( float  Cloudiness,
float  Precipitation 
)
static

◆ GLastSunRotation()

static FRotator GLastSunRotation ( ForceInitToZero  )
static

Referenced by NoteSunRotation().

◆ NoteLightingChange()

static void NoteLightingChange ( const UWorld *  World,
float  SunAltitude,
float  Cloudiness 
)
static

◆ NoteSunRotation()

static void NoteSunRotation ( const UWorld *  World,
const FRotator &  Rotation 
)
static

◆ ParseColorCVar()

static FLinearColor ParseColorCVar ( const TAutoConsoleVariable< FString > &  CVar,
const FLinearColor &  Fallback 
)
static

Definition at line 633 of file Weather.cpp.

Referenced by AWeather::ApplyWeatherToSkyActor(), and ComputeTwilightCloudScale().

◆ RainDeckScale()

static float RainDeckScale ( const TAutoConsoleVariable< float > &  CVar,
float  Precipitation 
)
static

Definition at line 598 of file Weather.cpp.

Referenced by AWeather::ApplyWeatherToSkyActor(), and GetOvercastSkyLightTarget().

◆ ReleaseDirectionalVSMInvalidateIfSunStill()

static void ReleaseDirectionalVSMInvalidateIfSunStill ( const UWorld *  World)
static

◆ ReleaseLightingUpdateIfSettled()

static void ReleaseLightingUpdateIfSettled ( const UWorld *  World)
static

◆ SampleCurvePeakAboveHorizon()

static float SampleCurvePeakAboveHorizon ( UCurveFloat *  Curve)
static

Definition at line 1063 of file Weather.cpp.

Referenced by AWeather::ApplyWeatherToSkyActor().

◆ SetForceInvalidateDirectionalVSM()

static void SetForceInvalidateDirectionalVSM ( bool  bOn)
static

◆ SetForceLightingUpdate()

static void SetForceLightingUpdate ( bool  bOn)
static

◆ UpdateMoonDisc()

static void UpdateMoonDisc ( AActor *  SkyActor,
const USceneComponent *  MoonLight,
float  MoonBlend,
float  SunAltitudeAngle 
)
static

◆ UpdateMoonHalo()

static void UpdateMoonHalo ( AActor *  SkyActor,
float  HaloBlend 
)
static

Variable Documentation

◆ GForcingDirectionalVSMInvalidate

bool GForcingDirectionalVSMInvalidate = false
static

◆ GForcingLightingUpdate

bool GForcingLightingUpdate = false
static

Definition at line 809 of file Weather.cpp.

Referenced by ReleaseLightingUpdateIfSettled(), and SetForceLightingUpdate().

◆ GLastPushedCloudiness

float GLastPushedCloudiness = TNumericLimits<float>::Max()
static

Definition at line 812 of file Weather.cpp.

Referenced by AWeather::EndPlay(), and NoteLightingChange().

◆ GLastPushedSunAltitude

float GLastPushedSunAltitude = TNumericLimits<float>::Max()
static

Definition at line 811 of file Weather.cpp.

Referenced by AWeather::EndPlay(), and NoteLightingChange().

◆ GLastSunMoveWorldSeconds

double GLastSunMoveWorldSeconds = 0.0
static

Definition at line 737 of file Weather.cpp.

Referenced by NoteSunRotation(), and ReleaseDirectionalVSMInvalidateIfSunStill().

◆ GLightingJumpCVars

const TCHAR* GLightingJumpCVars[]
static
Initial value:
= {
TEXT("r.Lumen.RadianceCache.ForceFullUpdate"),
TEXT("r.LumenScene.Lighting.ForceLightingUpdate"),
TEXT("r.SkyLight.RealTimeReflectionCapture.TimeSlice")}

Definition at line 803 of file Weather.cpp.

Referenced by SetForceLightingUpdate().

◆ GLightingJumpRestore

int32 GLightingJumpRestore[UE_ARRAY_COUNT(GLightingJumpCVars)] = {}
static

Definition at line 808 of file Weather.cpp.

Referenced by SetForceLightingUpdate().

◆ GLightingJumpValues

const int32 GLightingJumpValues[] = {1, 1, 0}
static

Definition at line 807 of file Weather.cpp.

Referenced by SetForceLightingUpdate().

◆ GLightingJumpWorldSeconds

double GLightingJumpWorldSeconds = 0.0
static

Definition at line 810 of file Weather.cpp.

Referenced by NoteLightingChange(), and ReleaseLightingUpdateIfSettled().