v4k-git-backup/demos/art/fx/fxBloom.fs

8 lines
251 B
Forth
Raw Normal View History

2023-09-27 06:49:59 +00:00
uniform float intensity; /// set:2.0
void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
vec2 uv = fragCoord.xy / iResolution.xy;
vec4 src = texture(iChannel0, uv);
fragColor = vec4( clamp(src * intensity, 0.0, 1.0).rgb, src.a );
}