setDayNightBlendFactor method

void setDayNightBlendFactor(
  1. double factor
)

Sets the blend factor for the day/night transition.

A lower value creates a sharper transition, while a higher value creates a smoother gradient. Recommended values are between 0.1 and 0.3.

Example usage:

controller.setDayNightBlendFactor(0.2);

Implementation

void setDayNightBlendFactor(double factor) {
  dayNightBlendFactor = factor.clamp(0.01, 1.0);
  notifyListeners();
}