Function lookAt
Parameters
- out: mat4
mat4 frustum matrix will be written into
- eye: ReadonlyVec3
Position of the viewer
- center: ReadonlyVec3
Point the viewer is looking at
- up: ReadonlyVec3
vec3 pointing up
Returns mat4
out
- out: mat4
Was this helpful?
mat4 frustum matrix will be written into
Position of the viewer
Point the viewer is looking at
vec3 pointing up
out
Generates a look-at matrix with the given eye position, focal point, and up axis. If you want a matrix that actually makes an object look at another object, you should use targetTo instead.