IFClite TypeScript API
    Preparing search index...

    Function deriveSkyGradient

    • Derive a sky gradient from the sun's elevation (the Y component of the unit sun direction = sin(altitude)). Four keyed palettes blended smoothly: night → twilight → golden hour → day.

      Parameters

      • sunElevation: number

      Returns SkyGradient