lookAtWorld

look at function with two points and an up vector, returns the world matrix (inverted camera position and rotation matrix)

  1. auto lookAtWorld(vec3 eye, vec3 target = vec3(0), vec3 up = vec3(0, 1, 0))
    lookAtWorld
    (
    vec3 eye
    ,
    vec3 target = vec3(0)
    ,
    vec3 up = vec3(0, 1, 0)
    )
  2. auto lookAtWorld(float ex, float ey, float ez, float tx = 0, float ty = 0, float tz = 0, float ux = 0, float uy = 1, float uz = 0)

Meta