From cd2bc889e5b30c69926fc1511b6522e7cb4c705d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 9 Jan 2015 11:40:23 +0100 Subject: console-gl: add opengl rendering helper functions Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- ui/shader/texture-blit.frag | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ui/shader/texture-blit.frag (limited to 'ui/shader/texture-blit.frag') diff --git a/ui/shader/texture-blit.frag b/ui/shader/texture-blit.frag new file mode 100644 index 0000000000..bfa202c22b --- /dev/null +++ b/ui/shader/texture-blit.frag @@ -0,0 +1,10 @@ + +#version 300 es + +uniform sampler2D image; +in mediump vec2 ex_tex_coord; +out mediump vec4 out_frag_color; + +void main(void) { + out_frag_color = texture(image, ex_tex_coord); +} -- cgit v1.2.3