From adfa666208bbf720e0dd33602661384b146e5268 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Sun, 19 Feb 2012 17:46:50 +0100 Subject: FBO example added --- samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c') diff --git a/samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c b/samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c index 7742746..437dd92 100644 --- a/samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c +++ b/samples/OpenGL/texture_distortion_glsl/texture_distortion_glsl.c @@ -43,7 +43,7 @@ static const GLchar *fragment_shader_source = " float ts = gl_TexCoord[0].s;\n" " vec2 mod_texcoord = gl_TexCoord[0].st*vec2(1., 2.) + vec2(0, -0.5 + 0.5*sin(T + 1.5*ts*pi));\n" " if( mod_texcoord.t < 0. || mod_texcoord.t > 1. ) { discard; }\n" -" gl_FragColor = -texture2D(texCMYK, mod_texcoord) + texture2D(texRGB, gl_TexCoord[0].st);\n" +" gl_FragColor.rgb = -texture2D(texCMYK, mod_texcoord).xyz + texture2D(texRGB, gl_TexCoord[0].st).xyz;\n" "}\n\0"; GLuint shaderFragment = 0; -- cgit v1.2.3