Changeset 1711


Ignore:
Timestamp:
Aug 10, 2012, 2:52:10 AM (8 years ago)
Author:
rez
Message:

setup menu: added a lot of parameters and reorganized some

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/render.cpp

    r1707 r1711  
    123123        "",
    124124    "blur",
    125         "blur enable",
     125        "enable",
    126126        "blur center",
    127127        "blur corner",
     
    132132        "",
    133133    "color",
     134        "postfx enable",
    134135        "filter red",
    135136        "filter green",
     
    139140        "grayscale",
    140141        "",
    141         "",
    142142    "modifier",
    143143        "deform ratio",
    144         "retrace color",
     144        "retrace strength",
    145145        "retrace length",
    146146        "retrace speed",
     147        "",
     148        "",
     149        "",
     150        "",
     151    "noise",
    147152        "offset h",
    148153        "offset v",
    149154        "noise",
    150155        "aberration",
     156        "",
     157        "",
     158        "",
     159        "",
    151160    "moire",
    152161        "h base",
     
    176185vec2 glow_large(2.0f,2.0f);     // large glow radius [center,corner]
    177186vec2 glow_small(1.0f,1.0f);     // small glow radius [center,corner]
    178 vec2 blur(0.25f,0.75f);         // glow radius [center,corner]
     187vec2 blur(0.25f,0.5f);          // glow radius [center,corner]
    179188//vec3 radial(2.0f,0.8f,0);     // radial [mix,strength,color mode]
    180189//------------------------------// [IDEAS] http://www.youtube.com/watch?v=d1qEP2vMe-I
    181 float postfx_deform = 0.625f;   // deformation ratio
    182 vec3 postfx_filter(0.875f,0.75f,1.0f);// color filter [red,green,blue]
     190float postfx_deform = 0.7f;     // deformation ratio
     191vec3 postfx_filter(0.8f,0.9f,0.4f);// color filter [red,green,blue]
    183192vec3 postfx_color(1.8f,1.8f,0.5f);    // color modifier [brightness,contrast,grayscale]
    184 vec3 postfx_retrace(0.04f,2.0f,4.0f); // retrace [color,length,speed]
     193vec3 postfx_retrace(0.05f,2.0f,4.0f); // retrace [strength,length,speed]
    185194vec2 postfx_offset(3.0f,3.0f);  // random line [horizontal,vertical]
    186 float postfx_noise = 0.125f;    // noise
     195float postfx_noise = 0.15f;     // noise
    187196float postfx_aberration = 3.0f; // chromatic aberration
    188197bool postfx_moire = true;       // moire
     
    207216        vec4(0.0f, 1.0f, 0.1f, glow_mix.x),
    208217        vec4(0.0f, 1.0f, 0.1f, glow_mix.y),
    209         vec4(0.0f, 4.0f, 0.05f, glow_large.x),
    210         vec4(0.0f, 4.0f, 0.05f, glow_large.y),
    211         vec4(0.0f, 2.0f, 0.05f, glow_small.x),
    212         vec4(0.0f, 2.0f, 0.05f, glow_small.y),
     218        vec4(0.0f, 4.0f, 0.1f, glow_large.x),
     219        vec4(0.0f, 4.0f, 0.1f, glow_large.y),
     220        vec4(0.0f, 2.0f, 0.1f, glow_small.x),
     221        vec4(0.0f, 2.0f, 0.1f, glow_small.y),
    213222        vec4(0),
    214223    vec4(0), /* blur */
    215224        vec4(0, 1, 1, 0),
    216         vec4(0.0f, 2.0f, 0.05f, blur.x),
    217         vec4(0.0f, 2.0f, 0.05f, blur.y),
    218     vec4(0) /* color */
     225        vec4(0.0f, 2.0f, 0.1f, blur.x),
     226        vec4(0.0f, 2.0f, 0.1f, blur.y),
     227        vec4(0),
     228        vec4(0),
     229        vec4(0),
     230        vec4(0),
     231        vec4(0),
     232    vec4(0), /* color */
     233        vec4(0, 1, 1, 0),
     234        vec4(0.0f, 1.0f, 0.1f, postfx_filter.x),
     235        vec4(0.0f, 1.0f, 0.1f, postfx_filter.y),
     236        vec4(0.0f, 1.0f, 0.1f, postfx_filter.z),
     237        vec4(0.0f, 4.0f, 0.1f, postfx_color.x),
     238        vec4(0.0f, 4.0f, 0.1f, postfx_color.y),
     239        vec4(0.0f, 1.5f, 0.1f, postfx_color.z),
     240        vec4(0),
     241    vec4(0), /* modifier */
     242        vec4(0.0f, 1.0f, 0.05f, postfx_deform),
     243        vec4(0.0f, 1.0f, 0.05f, postfx_retrace.x),
     244        vec4(0.0f, 8.0f, 1.0f, postfx_retrace.y),
     245        vec4(0.0f, 8.0f, 1.0f, postfx_retrace.z),
     246        vec4(0),
     247        vec4(0),
     248        vec4(0),
     249        vec4(0),
     250    vec4(0), /* noise */
     251        vec4(0.0f, 4.0f, 0.5f, postfx_offset.x),
     252        vec4(0.0f, 4.0f, 0.5f, postfx_offset.y),
     253        vec4(0.0f, 1.0f, 0.05f, postfx_noise),
     254        vec4(0.0f, 5.0f, 0.5f, postfx_aberration),
     255        vec4(0),
     256        vec4(0),
     257        vec4(0),
     258        vec4(0),
     259    vec4(0)
    219260    };
    220261
     
    234275    blur = vec2(setup_var[k].w, setup_var[k + 1].w); k += 2;
    235276    k += 6;
     277    m_shader_postfx = (setup_var[k].w == 1) ? true : false; k++;
     278    postfx_filter = vec3(setup_var[k].w, setup_var[k + 1].w, setup_var[k + 2].w); k += 3;
     279    postfx_color = vec3(setup_var[k].w, setup_var[k + 1].w, setup_var[k + 2].w); k += 3;
     280    k += 2;
     281    postfx_deform = setup_var[k].w; k++;
     282    postfx_retrace = vec3(setup_var[k].w, setup_var[k + 1].w, setup_var[k + 2].w); k += 3;
     283    k += 5;
     284    postfx_offset = vec2(setup_var[k].w, setup_var[k + 1].w); k += 2;
     285    postfx_noise = setup_var[k].w; k++;
     286    postfx_aberration = setup_var[k].w; k++;
     287    k += 5;
    236288}
    237289
Note: See TracChangeset for help on using the changeset viewer.