Changeset 393 for experimental/distortionNG/shaderIntensityMap.frag
- Timestamp:
- Jun 30, 2012, 7:44:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/shaderIntensityMap.frag
r392 r393 1 1 uniform sampler2DRect sceneTexture; 2 2 uniform sampler2DRect intensityMapTexture; 3 varying vec2 texcoord_scene;4 varying vec2 texcoord_intensityMap;5 3 6 4 varying vec2 texCoord; … … 8 6 void main(void) 9 7 { 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); 15 9 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) ; 18 11 }
Note: See TracChangeset
for help on using the changeset viewer.