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