Mindustry/core/assets/bloomshaders/threshold.frag

7 lines
211 B
GLSL
Raw Normal View History

2020-06-11 23:03:27 +07:00
uniform lowp sampler2D u_texture0;
uniform lowp vec2 threshold;
varying mediump vec2 v_texCoords;
2020-05-11 11:41:35 +07:00
void main(){
2019-06-25 06:39:57 +07:00
gl_FragColor.rgb = (texture2D(u_texture0, v_texCoords).rgb - vec3(threshold.x)) * threshold.y;
}