Function canvasPosToWorldRay

Converts a Canvas-space position into a World-space ray in the context of a Camera.

  • Parameters

    • canvas: any
    • viewMatrix: any

      The view matrix.

    • projMatrix: any

      The projection matrix.

    • projection: any

      The projection type (e.g., "ortho" for orthographic projection).

    • canvasPos: any

      The Canvas-space position.

    • worldRayOrigin: any

      The computed World-space ray origin (output).

    • worldRayDir: any

      The computed World-space ray direction (output).

    Returns void