2020-06-11 23:03:27 +07:00
|
|
|
uniform lowp sampler2D u_texture0;
|
|
|
|
uniform lowp sampler2D u_texture1;
|
|
|
|
uniform lowp float BloomIntensity;
|
|
|
|
uniform lowp float OriginalIntensity;
|
2019-06-25 06:39:57 +07:00
|
|
|
|
2020-06-11 23:03:27 +07:00
|
|
|
varying vec2 v_texCoords;
|
2019-06-25 06:39:57 +07:00
|
|
|
|
2020-05-11 11:41:35 +07:00
|
|
|
void main(){
|
2020-06-01 22:12:06 +07:00
|
|
|
vec4 original = texture2D(u_texture0, v_texCoords) * OriginalIntensity;
|
|
|
|
vec4 bloom = texture2D(u_texture1, v_texCoords) * BloomIntensity;
|
|
|
|
original = original * (vec4(1.0) - bloom);
|
|
|
|
gl_FragColor = original + bloom;
|
2020-10-28 02:08:53 +07:00
|
|
|
}
|