summaryrefslogtreecommitdiff
path: root/hello_obj2.lc
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-04-18 13:51:29 -0400
committerJoe Crayne <joe@jerkface.net>2019-04-18 16:49:37 -0400
commite3b16b1e3cd2ad658a25410fdaae7d738ca68835 (patch)
tree38fd0a94df4ba2bd80ee8257c8349a16e2b743bf /hello_obj2.lc
parent990f88d3678f98998433c9439592a32bbda56ffe (diff)
Comments in hello_obj2.lc
Diffstat (limited to 'hello_obj2.lc')
-rw-r--r--hello_obj2.lc15
1 files changed, 11 insertions, 4 deletions
diff --git a/hello_obj2.lc b/hello_obj2.lc
index a6c40ff..ebee807 100644
--- a/hello_obj2.lc
+++ b/hello_obj2.lc
@@ -1,8 +1,15 @@
1deg30 = 0.5235987755982988 -- pi/6
2
1coordmap (time::Float) (p::Vec 4 Float) 3coordmap (time::Float) (p::Vec 4 Float)
2 = perspective 0.1 100 30 1 4 = perspective 0.1 -- near plane
3 *. lookat (V3 0 0 5) (V3 0 0 0) (V3 0 1 0) 5 100 -- far plane
4 *. rotMatrixX time 6 deg30 -- y fov radians
5 *. rotMatrixZ time 7 1 -- aspect ratio w/h
8 *. lookat (V3 0 0 10) -- camera position
9 (V3 0 0 0) -- target position
10 (V3 0 1 0) -- upward direction
11 *. rotMatrixX time -- time = radians
12 *. rotMatrixZ time -- time = radians
6 *. p 13 *. p
7 14
8blendplane = -- NoBlending -- BlendLogicOp Xor 15blendplane = -- NoBlending -- BlendLogicOp Xor