programlibs/RayTrace/demos/diagnostic.xtl
clip : Float
clip ← 1e-6 100.0 1e-10 1e-5
triangles : Float
triangles ← 2 3 3 r̲eshape -1.0 -1.0 0.0 1.0 -1.0 0.0 1.0 1.0 0.0 -1.0 -1.0 0.0 1.0 1.0 0.0 -1.0 1.0 0.0
environment : Float
environment ← 2 3 r̲eshape 0.05 0.05 0.05 0.01 0.02 0.04
Used in: ᵘp̲ixels, sceneColor
ᵘo̲rigins : a -> Float
ᵘo̲rigins ← { pixels → camera ʳᵗo̲rigins t̲ally pixels }
ᵘd̲irections : Int -> Float
ᵘd̲irections ← { pixels → ((camera ʳᵗr̲ays 4 4) pixels) }
ᵘp̲ixels : Int -> Float
ᵘp̲ixels ← { pixels → (((((((clip ʳᵗr̲ender triangles) materialids) materials) lights) environment) ᵘo̲rigins pixels) ᵘd̲irections pixels) }
ᵘm̲ove : (Num a, Num b) => a -> b -> Float
ᵘm̲ove ← { offset mesh → (s̲hape mesh) r̲eshape offset ᵛt̲ranslate ((3 × t̲ally mesh) c̲at 3) r̲eshape mesh }
floor : Float
floor ← ˢᶜr̲ectangle 3 3 r̲eshape -4.0 -0.8 -4.0 0.0 0.0 8.0 8.0 0.0 0.0
Used in: sceneMesh
sceneMaterials : Float
sceneMaterials ← 3 4 r̲eshape 0.8 0.25 0.06 0.1 0.05 0.25 0.85 0.45 0.18 0.2 0.24 0.4
Used in: sceneColor
sceneCamera : Float
sceneCamera ← 3.0 2.0 5.0 -0.1 -0.1 0.0 0.0 1.0 0.0 0.62
Used in: sceneOrigins, sceneDirections
sceneDirections : Float
sceneDirections ← ((sceneCamera ʳᵗr̲ays size) r̲ange '× r̲/ size)
Used in: sceneColor
sceneColor : Float
sceneColor ← (((((((clip ʳᵗr̲ender sceneMesh) sceneIds) sceneMaterials) sceneLight) environment) sceneOrigins) sceneDirections)
Used in: picture
picture : Char
picture ← size ʳᵗs̲how! 1.5 ʳᵗs̲rgb sceneColor