Ignore:
Timestamp:
Mar 16, 2012, 9:53:30 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/shader.frag

    r335 r336  
    1 uniform sampler2D sceneTexture;
    2 uniform sampler2D intensityMapTexture;
     1uniform sampler2DRect sceneTexture;
     2uniform sampler2DRect intensityMapTexture;
    33in varying vec2 texcoord_scene;
    44in varying vec2 texcoord_intensityMap;
     
    99        vec4 blendColor;
    1010
    11         sceneColor = texture2D(sceneTexture, texcoord_scene);
    12         blendColor = texture2D(intensityMapTexture, gl_FragCoord);
    13         //gl_FragColor = vec4( 1.,1.,1.,1.);
    14         gl_FragColor = sceneColor;
     11        //sceneColor = texture2DRect(sceneTexture, texcoord_scene);
     12        sceneColor = texture2DRect(sceneTexture, gl_FragCoord);
     13        blendColor = texture2DRect(intensityMapTexture, gl_FragCoord);
     14        gl_FragColor = sceneColor * blendColor;
    1515}
Note: See TracChangeset for help on using the changeset viewer.