source:
experimental/distortionNG/shaderIntensityMap.frag
@
390
Last change on this file since 390 was 363, checked in by , 13 years ago | |
---|---|
File size: 376 bytes |
Line | |
---|---|
1 | uniform sampler2DRect sceneTexture; |
2 | uniform sampler2DRect intensityMapTexture; |
3 | varying vec2 texcoord_scene; |
4 | varying vec2 texcoord_intensityMap; |
5 | |
6 | void main(void) |
7 | { |
8 | vec4 sceneColor; |
9 | vec4 blendColor; |
10 | |
11 | sceneColor = texture2DRect(sceneTexture, gl_FragCoord); |
12 | blendColor = texture2DRect(intensityMapTexture, gl_FragCoord); |
13 | gl_FragColor = sceneColor * blendColor; |
14 | } |
Note: See TracBrowser
for help on using the repository browser.