CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
348 stars 83 forks source link

Sun, sky, and atmosphere implementation #173

Open argallegos opened 1 year ago

argallegos commented 1 year ago

Cesium for Unreal includes a CesiumSunSky actor that creates a convincing sky, with some adjustable parameters to aid with geospatial accuracy and lighting customization. We should discuss implementing a similar actor in Cesium for Unity.

Additional context on CesiumSunSky:

Desired result

To implement a comparable feature in Unity, we would likely need:

Breakdown of current sky shader options in Unity

Available sky options differ between Unity's High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP). The HDRP options in terms of sky shading are generally suitable. On the shading side, our implementation would focus on URP, where the deficits are more obvious.

Further considerations

engineerhe commented 1 year ago

Good idea. One more tip. Although the cesium-unity plugin has just started, we hope cesium team can keep the same frequency of updates as the cesium-unreal plugin, say updating once a month

dhyams commented 1 year ago

This would be wonderful; I'm not sure if I grokked it all, but my impression is that if I switch to HDRP I'll get a skybox that looks more like the native Cesium one? Would it still be black when near the earth surface? I'm looking for a way to create a skybox that looks like daytime near the earth, but as altitude goes up, it fades to black/starry, and basically looks like the native Javascript Cesium.

j9liu commented 5 months ago

Came up on the forum here: https://community.cesium.com/t/cesiumsunsky-for-unity/31548