diff options
author | Joe Crayne <joe@jerkface.net> | 2019-04-18 13:51:29 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2019-04-18 16:49:37 -0400 |
commit | e3b16b1e3cd2ad658a25410fdaae7d738ca68835 (patch) | |
tree | 38fd0a94df4ba2bd80ee8257c8349a16e2b743bf | |
parent | 990f88d3678f98998433c9439592a32bbda56ffe (diff) |
Comments in hello_obj2.lc
-rw-r--r-- | hello_obj2.lc | 15 |
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 @@ | |||
1 | deg30 = 0.5235987755982988 -- pi/6 | ||
2 | |||
1 | coordmap (time::Float) (p::Vec 4 Float) | 3 | coordmap (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 | ||
8 | blendplane = -- NoBlending -- BlendLogicOp Xor | 15 | blendplane = -- NoBlending -- BlendLogicOp Xor |