Handbook
Glossary
terrain-modelview ( player -- matrix )
Vocabulary
terrain
Inputs
player
an
object
Outputs
matrix
an
object
Definition
USING:
accessors
kernel
math.functions
math.matrices.simd
math.vectors
math.vectors.simd
;
IN:
terrain
:
terrain-modelview
( player -- matrix )
[
float-4{
1.0 0.0 0.0 0.0
}
swap
pitch>>
deg>rad
rotation-matrix4
]
[
float-4{
0.0 1.0 0.0 0.0
}
swap
yaw>>
deg>rad
rotation-matrix4
m4.
]
[
location>>
vneg
translation-matrix4
m4.
]
tri
;