CesiumSunSky adjusts the atmosphere at runtime in order to render a correct-looking globe even though Unreal's SkyAtmosphere incorrectly assumes the Earth is a sphere. The adjustment is a function of the position of the viewer, which it currently obtains using the location of the pawn returned by UGameplayStatics::GetPlayerPawn(pWorld, 0). This is not the right choice in all applications.
We should add a property to CesiumSunSky to let users specify a different Actor to guide the atmosphere adjustment.
CesiumSunSky adjusts the atmosphere at runtime in order to render a correct-looking globe even though Unreal's SkyAtmosphere incorrectly assumes the Earth is a sphere. The adjustment is a function of the position of the viewer, which it currently obtains using the location of the pawn returned by
UGameplayStatics::GetPlayerPawn(pWorld, 0)
. This is not the right choice in all applications.We should add a property to CesiumSunSky to let users specify a different Actor to guide the atmosphere adjustment.
As reported here: https://community.cesium.com/t/blotchy-global-view-in-unreal-engine/33318