Added the ability to get the up vector of a camera. I didn't add the set ability yet.
This commit is contained in:
@@ -186,6 +186,11 @@ camera will be set."
|
|||||||
(.lookAt camera x y z)
|
(.lookAt camera x y z)
|
||||||
(.update camera)))
|
(.update camera)))
|
||||||
|
|
||||||
|
(defn up [screen]
|
||||||
|
"Returns the up vector of the camera in `screen`."
|
||||||
|
(let [^Camera camera (u/get-obj screen :camera)]
|
||||||
|
(. camera up)))
|
||||||
|
|
||||||
(defn near
|
(defn near
|
||||||
"Returns the near clipping plane distance of the camera in `screen`."
|
"Returns the near clipping plane distance of the camera in `screen`."
|
||||||
[screen]
|
[screen]
|
||||||
|
|||||||
Reference in New Issue
Block a user