threejs-worldgen
    Preparing search index...

    Function kelvinToRgb

    • Approximate linear-light RGB of a black body at kelvin (1000–40000 K), normalised so the brightest channel is 1. Tanner Helland's fit, converted from sRGB to linear.

      Parameters

      • kelvin: number

      Returns Vec3