summaryrefslogtreecommitdiff
path: root/MeshSketch.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-04-30 00:04:53 -0400
committerJoe Crayne <joe@jerkface.net>2019-04-30 00:04:53 -0400
commit2052faa3ffb11490e41972d65df54ae0bbef8b9c (patch)
tree6b987c5fd115af2b24c85bc2c373cda17948b4fd /MeshSketch.hs
parentc9c0db44f79c5ad13c0937d8e36fa828447f9585 (diff)
skybox shader code.
Diffstat (limited to 'MeshSketch.hs')
-rw-r--r--MeshSketch.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MeshSketch.hs b/MeshSketch.hs
index 7f01d4d..70493bd 100644
--- a/MeshSketch.hs
+++ b/MeshSketch.hs
@@ -160,7 +160,7 @@ deg30 = pi/6
160 160
161whirlingCamera :: State -> Animation 161whirlingCamera :: State -> Animation
162whirlingCamera st = Animation $ \_ t -> do 162whirlingCamera st = Animation $ \_ t -> do
163 let tf = realToFrac (t/10.0) :: Float 163 let tf = realToFrac t :: Float
164 rot = rotMatrixZ (-tf) <> rotMatrixX (-tf) 164 rot = rotMatrixZ (-tf) <> rotMatrixX (-tf)
165 modifyIORef (stCamera st) $ \cam -> cam 165 modifyIORef (stCamera st) $ \cam -> cam
166 { camUp = rot #> fromList [0,1,0] 166 { camUp = rot #> fromList [0,1,0]