This commit is contained in:
2021-11-28 17:07:04 +00:00
parent 618653a86e
commit 5cbe394e08
28 changed files with 21 additions and 36 deletions
+4
View File
@@ -7,6 +7,7 @@ module Dodge.LightSource
, lsPosColRad
, lsColPos
, lsPosCol
, lsPosRad
, lsColPosID
)
where
@@ -37,8 +38,10 @@ tlsTimeRadFunPos t rmax intensityF p = TLS
& tlsParam . lsCol .~ f (intensityF (_tlsTime tls) )
f x' = V3 x' x' x'
lsPosColRad :: Point3 -> Point3 -> Float -> LightSource
lsPosColRad p col = lsColPosRad col p
lsPosRadCol :: Point3 -> Float -> Point3 -> LightSource
lsPosRadCol p r col = defaultLS
& lsParam . lsPos .~ p
& lsParam . lsRad .~ r
@@ -56,6 +59,7 @@ lsPosCol pos col = lsColPos col pos
lsColPosRad :: Point3 -> Point3 -> Float -> LightSource
lsColPosRad col pos r = lsPosRadCol pos r col
lsRadCol :: Float -> Point3 -> LightSource
lsRadCol r col = defaultLS & lsParam . lsRad .~ r
& lsParam . lsCol .~ col