aboutsummaryrefslogtreecommitdiff
path: root/Spear/Scene/Light.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Spear/Scene/Light.hs')
-rw-r--r--Spear/Scene/Light.hs62
1 files changed, 31 insertions, 31 deletions
diff --git a/Spear/Scene/Light.hs b/Spear/Scene/Light.hs
index f63b91d..fb4225b 100644
--- a/Spear/Scene/Light.hs
+++ b/Spear/Scene/Light.hs
@@ -1,31 +1,31 @@
1module Spear.Scene.Light 1module Spear.Scene.Light
2( 2(
3 Light(..) 3 Light(..)
4) 4)
5where 5where
6 6
7 7
8import qualified Spear.Math.Matrix4 as M 8import qualified Spear.Math.Matrix4 as M
9import qualified Spear.Math.Spatial3 as S 9import qualified Spear.Math.Spatial3 as S
10import Spear.Math.Vector 10import Spear.Math.Vector
11 11
12 12
13data Light 13data Light
14 = PointLight 14 = PointLight
15 { ambient :: Vector3 15 { ambient :: Vector3
16 , diffuse :: Vector3 16 , diffuse :: Vector3
17 , specular :: Vector3 17 , specular :: Vector3
18 , transform :: M.Matrix4 18 , transform :: M.Matrix4
19 } 19 }
20 | DirectionalLight 20 | DirectionalLight
21 { ambient :: Vector3 21 { ambient :: Vector3
22 , diffuse :: Vector3 22 , diffuse :: Vector3
23 , specular :: Vector3 23 , specular :: Vector3
24 , direction :: Vector3 24 , direction :: Vector3
25 } 25 }
26 | SpotLight 26 | SpotLight
27 { ambient :: Vector3 27 { ambient :: Vector3
28 , diffuse :: Vector3 28 , diffuse :: Vector3
29 , specular :: Vector3 29 , specular :: Vector3
30 , transform :: M.Matrix4 30 , transform :: M.Matrix4
31 } 31 }