From 71c800a5b9a428d8116533e3cf4bd86cdf2775da Mon Sep 17 00:00:00 2001 From: rez Date: Fri, 14 Sep 2012 13:49:56 +0000 Subject: [PATCH] NEERCS: fixed values for ghost picture --- neercs/video/postfx.lolfx | 4 ++-- neercs/video/render.cpp | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/neercs/video/postfx.lolfx b/neercs/video/postfx.lolfx index 2b31d87..623707b 100644 --- a/neercs/video/postfx.lolfx +++ b/neercs/video/postfx.lolfx @@ -55,8 +55,8 @@ void main(void) float mask=q.x*(6.0-q.x*6.0)*q.y*(6.0-q.y*6.0); vec3 source=get_color(texture,z); - vec3 g1=get_color(texture,z1-ghost1.xy); - vec3 g2=get_color(texture,z2-ghost2.xy); + vec3 g1=get_color(texture,z1-ghost1.xy*0.01); + vec3 g2=get_color(texture,z2-ghost2.xy*0.01); vec3 c=source+g1*ghost1.w+g2*ghost2.w; // mix diff --git a/neercs/video/render.cpp b/neercs/video/render.cpp index 4931880..bd0e156 100644 --- a/neercs/video/render.cpp +++ b/neercs/video/render.cpp @@ -88,7 +88,7 @@ float beat_speed = 2.0f; // speed float value, angle, radius, scale, speed; /* shader variable */ vec2 buffer(0.7f,0.3f); // [new frame mix,old frame mix] -vec2 remanency(0.5f,0.5f); // remanency [source mix,buffer mix] +vec2 remanency(0.6f,0.4f); // remanency [source mix,buffer mix] vec2 glow_mix(0.7f,0.3f); // glow mix [source mix,glow mix] vec2 glow_large(3.0f,0.0f); // large glow radius [center,corner] vec2 glow_small(1.5f,0.0f); // small glow radius [center,corner] @@ -100,10 +100,10 @@ vec2 noise_offset(2.0f,2.0f); // random line [horizontal,vertical] float noise_noise = 0.25f; // noise vec3 noise_retrace(1.0f,1.0f,0.5f); // retrace [strength,length,speed] vec2 postfx_deform(0.7f,0.54f); // deformation [ratio,zoom] -float postfx_vignetting = 0.0f; // vignetting strength +float postfx_vignetting = 0.5f; // vignetting strength float postfx_aberration = 4.0f; // chromatic aberration -vec4 postfx_ghost1(0.01f,0.0f,0.0f,-0.15f); // ghost picture 1 [position x,position y,position z,strength] -vec4 postfx_ghost2(0.02f,0.0f,0.0f,0.15f); // ghost picture 2 [position x,position y,position z,strength] +vec4 postfx_ghost1(1.0f,0.0f,0.0f,-0.25f); // ghost picture 1 [position x,position y,position z,strength] +vec4 postfx_ghost2(1.5f,0.0f,0.0f,0.25f); // ghost picture 2 [position x,position y,position z,strength] vec4 postfx_moire_h(0.75f,-0.25f,0.0f,1.0f); // vertical moire [base,variable,repeat,shift] vec4 postfx_moire_v(0.75f,-0.25f,1.0f,1.5f); // horizontal moire [base,variable,repeat,shift] vec4 postfx_scanline_h(0.75f,0.0f,0.0f,0.0f); // vertical scanline [base,variable,repeat,shift] @@ -290,12 +290,12 @@ vec4 setup_var[]={ // setup variable [start,end,step,value] vec4(0.0f, 4.0f, 0.25f, noise_retrace.z), vec4(0), vec4(0), /* ghost */ - vec4(-0.5f, 0.5f, 0.01f, postfx_ghost1.x), - vec4(-0.5f, 0.5f, 0.01f, postfx_ghost1.y), + vec4(-2.0f, 2.0f, 0.10f, postfx_ghost1.x), + vec4(-2.0f, 2.0f, 0.10f, postfx_ghost1.y), vec4(-2.0f, 2.0f, 0.10f, postfx_ghost1.z), vec4(-1.0f, 1.0f, 0.05f, postfx_ghost1.w), - vec4(-0.5f, 0.5f, 0.01f, postfx_ghost2.x), - vec4(-0.5f, 0.5f, 0.01f, postfx_ghost2.y), + vec4(-2.0f, 2.0f, 0.10f, postfx_ghost2.x), + vec4(-2.0f, 2.0f, 0.10f, postfx_ghost2.y), vec4(-2.0f, 2.0f, 0.10f, postfx_ghost2.z), vec4(-1.0f, 1.0f, 0.05f, postfx_ghost2.w), vec4(0), /* moire */