Handbook
Glossary
terrain-projection ( dim -- matrix )
Vocabulary
terrain
Inputs
dim
an
object
Outputs
matrix
an
object
Definition
USING:
kernel
math
math.matrices.simd
math.order
math.vectors
math.vectors.simd
sequences
;
IN:
terrain
:
terrain-projection
( dim -- matrix )
dup
first2
min
v/n
NEAR-PLANE
FOV
/
v*n
first2
0.0 0.0
float-4-boa
NEAR-PLANE
FAR-PLANE
frustum-matrix4
;