Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reorganised shader programs

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