Handbook
Glossary
wasd-pixel-ray ( world loc -- direction )
Vocabulary
gpu
.
util
.
wasd
Inputs
world
an
object
loc
an
object
Outputs
direction
an
object
Definition
USING:
accessors
arrays
kernel
math
math.matrices
math.vectors
sequences
;
IN:
gpu.util.wasd
::
wasd-pixel-ray
( world loc -- direction )
loc world
dim>>
[
/f
0.5
-
2.0
*
]
2map
world
wasd-fov-vector
v*
first2
neg
-1.0 0.0
4array
world
wasd-mv-inv-matrix
swap
mdotv
;