got rid of single binding
This commit is contained in:
parent
197e1a84d7
commit
b034d6b942
@ -56,8 +56,7 @@ diffuse (Collision pos n _ obj) s (Light lpos color int) =
|
|||||||
else
|
else
|
||||||
ill
|
ill
|
||||||
where
|
where
|
||||||
ill = (*) (dot n $ normalize lightdir) <$> illumination
|
ill = (*) (dot n $ normalize lightdir) <$> ((*) <$> color ^* i <*> materialDiffuse mat)
|
||||||
illumination = (*) <$> color ^* i <*> materialDiffuse mat
|
|
||||||
mat = getMaterial obj
|
mat = getMaterial obj
|
||||||
blocked = raytrace (Ray pos lightdir) s
|
blocked = raytrace (Ray pos lightdir) s
|
||||||
lightdir = (lpos ^-^ pos)
|
lightdir = (lpos ^-^ pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user