Ignore:
Timestamp:
Jun 30, 2012, 7:44:12 PM (12 years ago)
Author:
Torben Dannhauer
Message:

ProjectSyntropy? Distortion works! It a alpha version, some bugs are still not hunted down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/shaderIntensityMap.frag

    r392 r393  
    11uniform sampler2DRect sceneTexture;
    22uniform sampler2DRect intensityMapTexture;
    3 varying vec2 texcoord_scene;
    4 varying vec2 texcoord_intensityMap;
    53
    64varying vec2 texCoord;
     
    86void main(void)
    97{
    10         vec4 sceneColor;
    11         vec4 blendColor;
    12 
    13         //sceneColor = texture2DRect(sceneTexture, gl_FragCoord);
    14         blendColor = texture2DRect(intensityMapTexture, gl_FragCoord);
     8        vec4 blendColor = texture2DRect(intensityMapTexture, gl_FragCoord);
    159       
    16         //gl_FragColor = blendColor * texture2DRect( sceneTexture, texCoord*vec2(1920, 1200)) ;
    17         gl_FragColor = texture2DRect( sceneTexture, texCoord*vec2(1920, 1200)) ;
     10        gl_FragColor = blendColor * texture2DRect( sceneTexture, texCoord) ;
    1811}
Note: See TracChangeset for help on using the changeset viewer.