From 1ca861faef4e67d44931f45ded79363404c841ba Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Mon, 25 Jul 2011 17:55:52 +0200 Subject: [PATCH] version of growth video --- App.h | 4 ++-- resources/myVBlurShader.frag | 13 ------------- resources/myVBlurShader.vert | 5 ----- 3 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 resources/myVBlurShader.frag delete mode 100644 resources/myVBlurShader.vert diff --git a/App.h b/App.h index 6d55e80..40637bd 100644 --- a/App.h +++ b/App.h @@ -102,8 +102,8 @@ public: texture_shader.begin(); texture(texture_shader, draw_fbo); - //if(counter % 4 == 0) - // save_screen(); + if(counter % 4 == 0) + save_screen(); } void fade() { diff --git a/resources/myVBlurShader.frag b/resources/myVBlurShader.frag deleted file mode 100644 index 7b1a934..0000000 --- a/resources/myVBlurShader.frag +++ /dev/null @@ -1,13 +0,0 @@ -uniform sampler2D tex; - -vec2 offset = vec2(1.0/800.0, 0.0); -float inter = 0.2; - -void main( void ) { - gl_FragColor = texture2D(tex, gl_TexCoord[0].st + offset); - gl_FragColor += texture2D(tex, gl_TexCoord[0].st - offset); - gl_FragColor = inter*normalize(gl_FragColor) + (1.0 - inter)*gl_FragColor; - gl_FragColor *= 0.57; - //gl_FragColor = sin(gl_FragColor*3.0); - gl_FragColor.a = 1.0; -} diff --git a/resources/myVBlurShader.vert b/resources/myVBlurShader.vert deleted file mode 100644 index 9e4d3bc..0000000 --- a/resources/myVBlurShader.vert +++ /dev/null @@ -1,5 +0,0 @@ - -void main( void ) { - gl_TexCoord[0] = gl_MultiTexCoord0; - gl_Position = gl_Vertex; -}