Last change
on this file since 12323 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 | |
---|
9 | uniform sampler2D RT; |
---|
10 | uniform sampler2D Blur1; |
---|
11 | |
---|
12 | uniform float OriginalImageWeight; |
---|
13 | uniform float BlurWeight; |
---|
14 | varying vec2 texCoord; |
---|
15 | |
---|
16 | void 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.