Ignore:
Timestamp:
Jul 26, 2012, 6:38:45 PM (8 years ago)
Author:
rez
Message:

postfx optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/remanency.lolfx

    r1661 r1672  
    1313#version 120
    1414
    15 uniform sampler2D texture;
    16 uniform sampler2D texture_buffer;
    17 uniform vec2 screen_size;
    18 uniform float screen_color;
    19 uniform float value1;
    20 uniform float value2;
     15uniform sampler2D source;
     16uniform sampler2D buffer;
     17uniform vec2 mix;
    2118
    2219void main(void)
    2320        {
    24         vec2 p=gl_TexCoord[0].xy;
    25         vec4 source=texture2D(texture,p);
    26         vec4 buffer=texture2D(texture_buffer,p);
    27         vec4 color=source*value1+buffer*value2;
    28         gl_FragColor=color;
     21        gl_FragColor=texture2D(source,gl_TexCoord[0].xy)*mix.x+texture2D(buffer,gl_TexCoord[0].xy)*mix.y;
    2922        }
Note: See TracChangeset for help on using the changeset viewer.