threejs-worldgen
    Preparing search index...

    Function opticalDepth

    • Optical depths (Rayleigh, Mie, ozone; density × metres) from p along d to the top of the atmosphere. Returns null if the ray hits the planet.

      Parameters

      Returns Vec3 | null