glsl-look-at
Generates a 3D lookAt matrix in GLSL.
Usage
mat3 lookAt(vec3 origin, vec3 target, float roll)
Creates a mat3
matrix you can use to transform coordinates
to look towards a given point, where:
origin
is the position of the camera.target
is the position to look towards.roll
is the roll rotation of the camera.
# lookAt = require('glsl-look-at')uniform vec2 iResolution;void
Contributing
See stackgl/contributing for details.
License
MIT. See LICENSE.md for details.