summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/basicShader.fs
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/basicShader.fs')
-rw-r--r--gfx/gl/shaders/basicShader.fs8
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/gl/shaders/basicShader.fs b/gfx/gl/shaders/basicShader.fs
index 35d3ec3..7d79575 100644
--- a/gfx/gl/shaders/basicShader.fs
+++ b/gfx/gl/shaders/basicShader.fs
@@ -1,13 +1,13 @@
-#version 120
+#version 130
-varying vec2 texCoord0;
-varying vec3 normal0;
+in vec2 texCoord0;
+in vec3 normal0;
uniform sampler2D sampler;
uniform vec3 lightDirection;
void main()
{
- gl_FragColor = texture2D(sampler, texCoord0);
+ gl_FragColor = texture(sampler, texCoord0);
gl_FragColor.xyz *= clamp(dot(-lightDirection, normal0), 0.0, 1.0);
}