Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL/Bloom2_ps20.glsl @ 12083

Last change on this file since 12083 was 12083, checked in by wiesep, 5 years ago

Reorganised shader programs

File size: 623 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;
14
15void main()
16{
17    vec4 sharp;
18    vec4 blur;
19   
20    vec2 texCoord = vec2( gl_TexCoord[0] );
21
22    sharp = texture2D( RT, texCoord);
23    blur = texture2D( Blur1, texCoord);
24   
25    gl_FragColor = ( (blur * BlurWeight) + (sharp * OriginalImageWeight) );
26    //gl_FragColor = vec4(0);
27}
Note: See TracBrowser for help on using the repository browser.