aboutsummaryrefslogtreecommitdiff
path: root/system/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'system/shaders')
-rw-r--r--system/shaders/guishader_frag1.glsl3
-rw-r--r--system/shaders/guishader_frag4.glsl13
2 files changed, 15 insertions, 1 deletions
diff --git a/system/shaders/guishader_frag1.glsl b/system/shaders/guishader_frag1.glsl
index 73c6f3929f..4f5cad7b4a 100644
--- a/system/shaders/guishader_frag1.glsl
+++ b/system/shaders/guishader_frag1.glsl
@@ -6,7 +6,8 @@ varying vec4 m_cord1;
varying vec4 m_colour;
uniform int m_method;
+// SM_TEXTURE
void main ()
{
- gl_FragColor.rgba = texture2D(m_samp0, m_cord0.xy).bgra;
+ gl_FragColor.rgba = vec4(texture2D(m_samp0, m_cord0.xy).bgra * m_colour);
}
diff --git a/system/shaders/guishader_frag4.glsl b/system/shaders/guishader_frag4.glsl
new file mode 100644
index 0000000000..2a1d62eb2c
--- /dev/null
+++ b/system/shaders/guishader_frag4.glsl
@@ -0,0 +1,13 @@
+precision mediump float;
+uniform sampler2D m_samp0;
+uniform sampler2D m_samp1;
+varying vec4 m_cord0;
+varying vec4 m_cord1;
+varying vec4 m_colour;
+uniform int m_method;
+
+// SM_TEXTURE_NOBLEND
+void main ()
+{
+ gl_FragColor.rgba = vec4(texture2D(m_samp0, m_cord0.xy).bgra);
+}