CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
879 stars 285 forks source link

CesiumSunSky should allow atmosphere adjustment Actor to be specified #1467

Open kring opened 5 days ago

kring commented 5 days ago

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