Refactor, try to limit dependencies
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
module Dodge.PrWdLsLs
|
||||
where
|
||||
module Dodge.PrWdLsLs where
|
||||
|
||||
import Control.Lens
|
||||
import Dodge.Data.World
|
||||
import Dodge.WdP2f
|
||||
import Geometry.Vector3D
|
||||
import Dodge.Data
|
||||
import Control.Lens
|
||||
|
||||
doPrWdLsLs :: PrWdLsLs -> Prop -> World -> LightSource -> LightSource
|
||||
doPrWdLsLs :: PrWdLsLs -> Prop -> World -> LightSource -> LightSource
|
||||
doPrWdLsLs x = case x of
|
||||
PrWdLsId -> \_ _ -> id
|
||||
PrWdLsSetPosition y off -> \_ w
|
||||
-> lsParam . lsPos .~ addZ 0 (fst (doWdP2f y w)) +.+.+ rotate3z (snd (doWdP2f y w)) off
|
||||
PrWdLsId -> \_ _ -> id
|
||||
PrWdLsSetPosition y off -> \_ w ->
|
||||
lsParam . lsPos .~ addZ 0 (fst (doWdP2f y w)) +.+.+ rotate3z (snd (doWdP2f y w)) off
|
||||
PrWdLsSetColor c -> \_ _ -> lsParam . lsCol .~ c
|
||||
|
||||
Reference in New Issue
Block a user