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