Skip to content

Commit

Permalink
Update lighting example
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Oct 15, 2024
1 parent 2b3907c commit abd0e39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Apps/Sandcastle/gallery/Lighting.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
scene.light = sunLight;
scene.globe.dynamicAtmosphereLighting = true;
scene.globe.dynamicAtmosphereLightingFromSun = false;
scene.atmosphere.dynamicLighting = Cesium.DynamicAtmosphereLightingType.NONE;
setTime("2020-01-09T23:00:39.018261982600961346Z");
}

Expand Down Expand Up @@ -200,13 +201,17 @@
reset();
scene.light = moonLight;
scene.globe.dynamicAtmosphereLightingFromSun = true;
scene.atmosphere.dynamicLighting =
Cesium.DynamicAtmosphereLightingType.SCENE_LIGHT;
setTime("2020-01-10T05:29:41.17946898164518643Z");
},
},
{
text: "Sunlight",
onselect: function () {
reset();
scene.atmosphere.dynamicLighting =
Cesium.DynamicAtmosphereLightingType.SUNLIGHT;
},
},
{
Expand Down

0 comments on commit abd0e39

Please sign in to comment.