source: experimental/distortionNG/shader.frag @ 417

Last change on this file since 417 was 341, checked in by Torben Dannhauer, 13 years ago

intensityBlending is now supported. Code refactored to have a single setup method

File size: 376 bytes
RevLine 
[336]1uniform sampler2DRect sceneTexture;
2uniform sampler2DRect intensityMapTexture;
[338]3varying vec2 texcoord_scene;
4varying vec2 texcoord_intensityMap;
[334]5
6void main(void)
7{
8        vec4 sceneColor;
9        vec4 blendColor;
10
[336]11        sceneColor = texture2DRect(sceneTexture, gl_FragCoord);
12        blendColor = texture2DRect(intensityMapTexture, gl_FragCoord);
13        gl_FragColor = sceneColor * blendColor;
[334]14}
Note: See TracBrowser for help on using the repository browser.