aboutsummaryrefslogtreecommitdiff
path: root/deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs
diff options
context:
space:
mode:
Diffstat (limited to 'deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs')
-rw-r--r--deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs23
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs b/deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs
new file mode 100644
index 0000000..6a8d44e
--- /dev/null
+++ b/deps/raylib/examples/shaders/resources/shaders/glsl100/base.fs
@@ -0,0 +1,23 @@
+#version 100
+
+precision mediump float;
+
+// Input vertex attributes (from vertex shader)
+varying vec2 fragTexCoord;
+varying vec4 fragColor;
+
+// Input uniform values
+uniform sampler2D texture0;
+uniform vec4 colDiffuse;
+
+// NOTE: Add here your custom variables
+
+void main()
+{
+ // Texel color fetching from texture sampler
+ vec4 texelColor = texture2D(texture0, fragTexCoord);
+
+ // NOTE: Implement here your fragment shader code
+
+ gl_FragColor = texelColor*colDiffuse;
+} \ No newline at end of file