Browse Source

version of growth video

master
Joshua Moerman 14 years ago
parent
commit
1ca861faef
  1. 4
      App.h
  2. 13
      resources/myVBlurShader.frag
  3. 5
      resources/myVBlurShader.vert

4
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() {

13
resources/myVBlurShader.frag

@ -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;
}

5
resources/myVBlurShader.vert

@ -1,5 +0,0 @@
void main( void ) {
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_Vertex;
}