Changeset 336 for experimental/distortionNG/shader.frag
- Timestamp:
- Mar 16, 2012, 9:53:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/shader.frag
r335 r336 1 uniform sampler2D sceneTexture;2 uniform sampler2D intensityMapTexture;1 uniform sampler2DRect sceneTexture; 2 uniform sampler2DRect intensityMapTexture; 3 3 in varying vec2 texcoord_scene; 4 4 in varying vec2 texcoord_intensityMap; … … 9 9 vec4 blendColor; 10 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 ;11 //sceneColor = texture2DRect(sceneTexture, texcoord_scene); 12 sceneColor = texture2DRect(sceneTexture, gl_FragCoord); 13 blendColor = texture2DRect(intensityMapTexture, gl_FragCoord); 14 gl_FragColor = sceneColor * blendColor; 15 15 }
Note: See TracChangeset
for help on using the changeset viewer.