Function createViewTransform

  • This functions creates a view matrix of the mat4 type and the camera options. It returns the interface IViewOutput.

    Parameters

    • cameraPos: vec3 = ...

      Camera position, defaulting to [2, 2, 4]

    • lookDir: vec3 = ...

      Look at direction, defaulting to [0, 0, 0]

    • upDir: vec3 = ...

      Look up direction, defaulting to [0, 1, 0], i.e., the y direction is the look up direction

    Returns IViewOutput

Generated using TypeDoc