Files
Mindustry/core/assets/bloomshaders/threshold.frag

7 lines
211 B
GLSL
Raw Normal View History

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