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
|
||||
ill
|
||||
where
|
||||
ill = (*) (dot n $ normalize lightdir) <$> illumination
|
||||
illumination = (*) <$> color ^* i <*> materialDiffuse mat
|
||||
ill = (*) (dot n $ normalize lightdir) <$> ((*) <$> color ^* i <*> materialDiffuse mat)
|
||||
mat = getMaterial obj
|
||||
blocked = raytrace (Ray pos lightdir) s
|
||||
lightdir = (lpos ^-^ pos)
|
||||
|
Loading…
Reference in New Issue
Block a user