summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl3_shaders.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_gl3_shaders.glsl')
-rw-r--r--libvo/vo_gl3_shaders.glsl18
1 files changed, 14 insertions, 4 deletions
diff --git a/libvo/vo_gl3_shaders.glsl b/libvo/vo_gl3_shaders.glsl
index f67e55e6f5..20f8c597ad 100644
--- a/libvo/vo_gl3_shaders.glsl
+++ b/libvo/vo_gl3_shaders.glsl
@@ -45,7 +45,7 @@ void main() {
texcoord = vertex_texcoord;
}
-#!section frag_eosd
+#!section frag_osd_libass
uniform sampler2D texture1;
in vec2 texcoord;
@@ -56,15 +56,25 @@ void main() {
out_color = vec4(color.rgb, color.a * texture(texture1, texcoord).r);
}
-#!section frag_osd
+#!section frag_osd_rgba
uniform sampler2D texture1;
in vec2 texcoord;
-in vec4 color;
out vec4 out_color;
void main() {
- out_color = texture(texture1, texcoord).rrrg * color;
+ out_color = texture(texture1, texcoord);
+}
+
+#!section frag_osd_old
+uniform sampler2D texture1;
+uniform vec4 osd_color;
+
+in vec2 texcoord;
+out vec4 out_color;
+
+void main() {
+ out_color = texture(texture1, texcoord).rrrg * osd_color;
}
#!section frag_video