threejs-worldgen
    Preparing search index...

    Function frameDirection

    • The view direction baked into frame (i, j) of a frames × frames atlas. Frames sit on grid points i / (frames - 1), so the outermost frames lie exactly on the horizon (hemisphere) or the bottom pole (sphere).

      Parameters

      • i: number
      • j: number
      • frames: number
      • hemisphere: boolean

      Returns Vec3Tuple