Handbook
Glossary
ray-pixel ( scene point -- ray-grid )
Vocabulary
benchmark
.
raytracer-simd
Inputs
scene
an
object
point
an
object
Outputs
ray-grid
an
object
Definition
USING:
generalizations
kernel
math
math.vectors
math.vectors.simd.cords
sequences
;
IN:
benchmark.raytracer-simd
:
ray-pixel
( scene point -- ray-grid )
[
0.0
]
2dip
oversampling
<iota>
[
oversampling
<iota>
[
ss-point
v+
normalize
double-4{
0.0 0.0 -4.0 0.0
}
swap
<ray>
swap
cast-ray
+
]
3
nwith
each
]
2with
each
;
inline