aboutsummaryrefslogtreecommitdiff
path: root/Models.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-03 01:03:52 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-03 01:03:52 -0700
commit11fca081b1241e1915f357fa40baa3e97aceb823 (patch)
treec0312c145d9133cef5e31b04a71bec050097f0f0 /Models.hs
parent7dd8c59353167e84dab9e7a1afc16e2290b249e3 (diff)
downloadterralloc-11fca081b1241e1915f357fa40baa3e97aceb823.tar.gz
terralloc-11fca081b1241e1915f357fa40baa3e97aceb823.tar.bz2
terralloc-11fca081b1241e1915f357fa40baa3e97aceb823.zip
Start reviving this ancient project. (It's pretty cool).
Got it to compile using Stack. Skybox works, but nothing else really does. I think this is a problem with how the program is interpreting the surface pixels when calculating the map terrain and elevation. I think some TLC is in order.
Diffstat (limited to 'Models.hs')
-rw-r--r--Models.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Models.hs b/Models.hs
index 3f15288..3d154e6 100644
--- a/Models.hs
+++ b/Models.hs
@@ -53,8 +53,8 @@ tree =
forM_ [0..6.4] $ \th -> do
let vertex x y z = do
- gNormal3 x 0 z
- gVertex4E x y z 0
+ gNormal3 x 0 z
+ gVertex4E x y z 0
let c = r * cos th
let s = r * sin th
@@ -75,8 +75,8 @@ tree =
forM_ [0..6.4] $ \th -> do
let vertex x y z = do
- gNormal3 x 0 z
- gVertex4E x y z 0
+ gNormal3 x 0 z
+ gVertex4E x y z 0
let c = r * 4 * cos th
let s = r * 4 * sin th