Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/Bloom2_ps20.glsles @ 12091

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

Updated programs and adjusted Material to work with GLSL>150

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