summaryrefslogtreecommitdiffhomepage
path: root/shaders/glsl100/template.fs
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/glsl100/template.fs')
-rw-r--r--shaders/glsl100/template.fs4
1 files changed, 4 insertions, 0 deletions
diff --git a/shaders/glsl100/template.fs b/shaders/glsl100/template.fs
index 1f4b8ccf..a3942890 100644
--- a/shaders/glsl100/template.fs
+++ b/shaders/glsl100/template.fs
@@ -2,8 +2,11 @@
precision mediump float;
+// Input vertex attributes (from vertex shader)
varying vec2 fragTexCoord;
+varying vec4 fragColor;
+// Input uniform values
uniform sampler2D texture0;
uniform vec4 fragTintColor;
@@ -11,6 +14,7 @@ uniform vec4 fragTintColor;
void main()
{
+ // Texel color fetching from texture sampler
vec4 texelColor = texture2D(texture0, fragTexCoord);
// NOTE: Implement here your fragment shader code