source: experimental/distortionNG/shaderIntensityMap.frag @ 392

Last change on this file since 392 was 392, checked in by Torben Dannhauer, 12 years ago
File size: 530 bytes
Line 
1uniform sampler2DRect sceneTexture;
2uniform sampler2DRect intensityMapTexture;
3varying vec2 texcoord_scene;
4varying vec2 texcoord_intensityMap;
5
6varying vec2 texCoord;
7
8void main(void)
9{
10        vec4 sceneColor;
11        vec4 blendColor;
12
13        //sceneColor = texture2DRect(sceneTexture, gl_FragCoord);
14        blendColor = texture2DRect(intensityMapTexture, gl_FragCoord);
15       
16        //gl_FragColor = blendColor * texture2DRect( sceneTexture, texCoord*vec2(1920, 1200)) ;
17        gl_FragColor = texture2DRect( sceneTexture, texCoord*vec2(1920, 1200)) ;
18}
Note: See TracBrowser for help on using the repository browser.