summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testdata/editor-examples/LambdaCube2.lc6
1 files changed, 4 insertions, 2 deletions
diff --git a/testdata/editor-examples/LambdaCube2.lc b/testdata/editor-examples/LambdaCube2.lc
index fe6909ff..b174240d 100644
--- a/testdata/editor-examples/LambdaCube2.lc
+++ b/testdata/editor-examples/LambdaCube2.lc
@@ -2,7 +2,6 @@
2len2 v = v%x*v%x + v%y*v%y + v%z*v%z 2len2 v = v%x*v%x + v%y*v%y + v%z*v%z
3 3
4makeFrame (time :: Float) 4makeFrame (time :: Float)
5 (projmat :: Mat 4 4 Float)
6 (vertexstream :: PrimitiveStream Triangle ((Vec 4 Float))) 5 (vertexstream :: PrimitiveStream Triangle ((Vec 4 Float)))
7 6
8 = imageFrame (emptyDepthImage 1, emptyColorImage navy) 7 = imageFrame (emptyDepthImage 1, emptyColorImage navy)
@@ -15,6 +14,10 @@ makeFrame (time :: Float)
15 where 14 where
16 h = 0.25 15 h = 0.25
17 16
17 projmat = perspective 0.1 100.0 30.0 1.0
18 .*. lookat (V3 3.0 1.3 0.3) (V3 0.0 0.0 0.0) (V3 0.0 1.0 0.0)
19 .*. rotMatrixY (pi / 24.0 * time)
20
18 ffilter ((v)) = 21 ffilter ((v)) =
19 (v%y + v%x + v%z > 1 || abs (v%y - v%x + v%z - 1.0) > h) 22 (v%y + v%x + v%z > 1 || abs (v%y - v%x + v%z - 1.0) > h)
20 && (v%y + v%x - v%z > 1 || abs (v%y + v%x + v%z - 1.0) > h) 23 && (v%y + v%x - v%z > 1 || abs (v%y + v%x + v%z - 1.0) > h)
@@ -26,6 +29,5 @@ makeFrame (time :: Float)
26 29
27main = renderFrame $ 30main = renderFrame $
28 makeFrame (Uniform "Time") 31 makeFrame (Uniform "Time")
29 (Uniform "MVP")
30 (fetch "stream4" (Attribute "position4")) 32 (fetch "stream4" (Attribute "position4"))
31 33