Liking cljdoc? Tell your friends :D

artlib.3d.native


glm-scaleclj

(glm-scale matrix [x y z])

Scale the matrix. Returns a new matrix.

Scale the matrix. Returns a new matrix.
sourceraw docstring

look-atclj

(look-at camera)
(look-at camera-pos camera-target up)

Create a view matrix.

Create a view matrix.
sourceraw docstring

mat4clj

(mat4)

Generates a 4x4 identity matrix.

Generates a 4x4 identity matrix.
sourceraw docstring

perspective-fovclj

(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.
sourceraw docstring

projectclj

(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
sourceraw docstring

translateclj

(translate matrix [x y z])

Translate the matrix. Returns a new matrix.

Translate the matrix. Returns a new matrix.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close