Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL120/Bloom2_ps20.glsl @ 12202

Last change on this file since 12202 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 570 bytes
Line 
1//-------------------------------
2//Bloom_ps20.glsl
3// Blends using weights the blurred image with the sharp one
4// Params:
5//   OriginalImageWeight
6//   BlurWeight
7//-------------------------------
8
9uniform sampler2D RT;
10uniform sampler2D Blur1;
11
12uniform float OriginalImageWeight;
13uniform float BlurWeight;
14varying vec2 texCoord;
15
16void main()
17{
18    vec4 sharp;
19    vec4 blur;
20
21    sharp = texture2D( RT, texCoord);
22    blur = texture2D( Blur1, texCoord);
23   
24    gl_FragColor = ( (blur * BlurWeight) + (sharp * OriginalImageWeight) );
25    //gl_FragColor = vec4(0);
26}
Note: See TracBrowser for help on using the repository browser.