changed camera to new model

This commit is contained in:
Stefan Dresselhaus
2014-04-21 19:46:24 +02:00
parent e2da50b6d9
commit 06bd9c4214
3 changed files with 10 additions and 13 deletions

View File

@ -89,7 +89,7 @@ lookAt eye center up' =
y@(V3 yx yy yz) = normalize (cross z x)
getCam :: (Double, Double) -- ^ Target in x/z-Plane
{-getCam :: (Double, Double) -- ^ Target in x/z-Plane
-> Double -- ^ Distance from Target
-> Double -- ^ Angle around X-Axis (angle down/up)
-> Double -- ^ Angle around Y-Axis (angle left/right)
@ -110,7 +110,7 @@ getCam (x',z') dist' xa' ya' = lookAt (cpos ^+^ at') at' up
z = realToFrac z'
dist = realToFrac dist'
xa = realToFrac xa'
ya = realToFrac ya'
ya = realToFrac ya'-}
curb :: Ord a => a -> a -> a -> a
curb l h x