CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.98k stars 3.5k forks source link

Enable globe lighting for 3D Tilesets #11302

Open jjhembd opened 1 year ago

jjhembd commented 1 year ago

The Globe.enableLighting flag does not affect the lighting of 3D Tilesets.

The default Globe with viewer.scene.globe.enableLighting = true shows one side of the Earth dark, as expected:

image

The same view using Google's Photorealistic 3D Tiles appears uniformly lighted, except that the SkyAtmosphere is dark on one side:

image

Users should be able to apply global lighting to 3D Tilesets. This has already been requested on the forum.

ggetz commented 1 year ago

Just a note here that Google's tiles use the glTF unlit extension because there is already lighting "baked in". That extension which would need to be ignored in order to implement this.