(glm-scale matrix [x y z])Scale the matrix. Returns a new matrix.
Scale the matrix. Returns a new matrix.
(look-at camera)(look-at camera-pos camera-target up)Create a view matrix.
Create a view matrix.
(perspective-fov)(perspective-fov fov aspect-ratio near-plane far-plane)Create a perpective projection matrix. FOV is in radians.
Create a perpective projection matrix. FOV is in radians.
(project projection view model [x y z])Convenience function to perform vertex projection. Result will have a Z value. Equivalent to: Vout = Mproject * Mview* Mmodel * Vin
Convenience function to perform vertex projection. Result will have a Z value. Equivalent to: Vout = Mproject * Mview* Mmodel * Vin
(translate matrix [x y z])Translate the matrix. Returns a new matrix.
Translate the matrix. Returns a new matrix.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |