Rev | Line | |
---|
[336] | 1 | uniform sampler2DRect sceneTexture; |
---|
| 2 | uniform sampler2DRect intensityMapTexture; |
---|
[335] | 3 | in varying vec2 texcoord_scene; |
---|
| 4 | in varying vec2 texcoord_intensityMap; |
---|
[334] | 5 | |
---|
| 6 | void main(void) |
---|
| 7 | { |
---|
| 8 | vec4 sceneColor; |
---|
| 9 | vec4 blendColor; |
---|
| 10 | |
---|
[336] | 11 | //sceneColor = texture2DRect(sceneTexture, texcoord_scene); |
---|
| 12 | sceneColor = texture2DRect(sceneTexture, gl_FragCoord); |
---|
| 13 | blendColor = texture2DRect(intensityMapTexture, gl_FragCoord); |
---|
| 14 | gl_FragColor = sceneColor * blendColor; |
---|
[334] | 15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.