setDayNightCycleEnabled method

void setDayNightCycleEnabled(
  1. bool enabled
)

Enables or disables the day/night cycle effect.

When enabled, the globe will blend between the day surface and night surface based on the sun's position.

Example usage:

controller.setDayNightCycleEnabled(true);

Implementation

void setDayNightCycleEnabled(bool enabled) {
  isDayNightCycleEnabled = enabled;
  notifyListeners();
}