version of growth video
This commit is contained in:
parent
7df0845872
commit
1ca861faef
3 changed files with 2 additions and 20 deletions
4
App.h
4
App.h
|
@ -102,8 +102,8 @@ public:
|
||||||
texture_shader.begin();
|
texture_shader.begin();
|
||||||
texture(texture_shader, draw_fbo);
|
texture(texture_shader, draw_fbo);
|
||||||
|
|
||||||
//if(counter % 4 == 0)
|
if(counter % 4 == 0)
|
||||||
// save_screen();
|
save_screen();
|
||||||
}
|
}
|
||||||
|
|
||||||
void fade() {
|
void fade() {
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
void main( void ) {
|
|
||||||
gl_TexCoord[0] = gl_MultiTexCoord0;
|
|
||||||
gl_Position = gl_Vertex;
|
|
||||||
}
|
|
Reference in a new issue