summaryrefslogtreecommitdiff
path: root/hello_obj2.lc
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-04-22 05:05:31 -0400
committerJoe Crayne <joe@jerkface.net>2019-04-22 05:05:31 -0400
commit158564b28f4316b4c140457d543ec4d65391a043 (patch)
tree7889891c8112bfa05af8bd94d6d8de053f617456 /hello_obj2.lc
parenta5be1222b3522dd9e58a10dfb4d3210970faab02 (diff)
Pass entire model-view-projection matrix from haskell.
Diffstat (limited to 'hello_obj2.lc')
-rw-r--r--hello_obj2.lc8
1 files changed, 1 insertions, 7 deletions
diff --git a/hello_obj2.lc b/hello_obj2.lc
index 7adf8b1..5a95ad7 100644
--- a/hello_obj2.lc
+++ b/hello_obj2.lc
@@ -1,12 +1,6 @@
1deg30 = 0.5235987755982988 -- pi/6
2 1
3coordmap (cam::Mat 4 4 Float) (p::Vec 4 Float) 2coordmap (cam::Mat 4 4 Float) (p::Vec 4 Float)
4 = perspective 0.1 -- near plane 3 = cam *. p
5 100 -- far plane
6 deg30 -- y fov radians
7 1 -- aspect ratio w/h
8 *. cam
9 *. p
10 4
11blendplane = -- NoBlending -- BlendLogicOp Xor 5blendplane = -- NoBlending -- BlendLogicOp Xor
12 Blend (FuncAdd,FuncAdd) 6 Blend (FuncAdd,FuncAdd)