aboutsummaryrefslogtreecommitdiffstats
path: root/src/Vivant/Shader.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vivant/Shader.hs')
-rw-r--r--src/Vivant/Shader.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Vivant/Shader.hs b/src/Vivant/Shader.hs
index aa884c6..4ba5c09 100644
--- a/src/Vivant/Shader.hs
+++ b/src/Vivant/Shader.hs
@@ -13,7 +13,7 @@ createProgram = do
datadir <- getDataDir
-- compile vertex shader
vs <- GL.createShader GL.VertexShader
- vsSource <- BS.readFile $ datadir <> "/shaders/triangle.vert"
+ vsSource <- BS.readFile $ datadir <> "/shaders/phong.vert.glsl"
GL.shaderSourceBS vs $= vsSource
GL.compileShader vs
vsOK <- GL.get $ GL.compileStatus vs
@@ -24,7 +24,7 @@ createProgram = do
-- Do it again for the fragment shader
fs <- GL.createShader GL.FragmentShader
- fsSource <- BS.readFile $ datadir <> "/shaders/triangle.frag"
+ fsSource <- BS.readFile $ datadir <> "/shaders/phong.frag.glsl"
GL.shaderSourceBS fs $= fsSource
GL.compileShader fs
fsOK <- GL.get $ GL.compileStatus fs