programlibs/RayTrace/demos/sphere.xtl

source · imports rt: libs/RayTrace/src/RayTrace.xtl

clip : Float

value · line 3
clip ← 0.001 100.0 1e-10 0.0001
Used in: hits

sphere : Float

value · line 4
sphere ← 0.0 0.0 0.0 1.0

origins : Int

value · line 5
origins ← 3 3 r̲eshape 0 0 3  0 0 0  1 0 3
Used in: hits, points

directions : Int

value · line 6
directions ← 3 3 r̲eshape 0 0 -1
Used in: hits

hits : Float

value · line 7
hits ← (((clip ʳᵗs̲phereHit sphere) origins) directions)

points : Float

value · line 10
points ← (f̲loat origins) + (ʳᵗd̲istances hits) '× t̲able 0.0 0.0 -1.0