update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_fxglow.fs
1 uniform sampler2D uTexMain;
2 uniform vec3 uCamera;
3
4 #include "light_clearskies_stddef.glsl"
5 #include "common_scene.glsl"
6 #include "motion_vectors_fs.glsl"
7
8 void main(){
9 oMotionVec = vec2(0.0);
10
11 vec4 vsamplemain = texture( uTexMain, aUv );
12
13 vec2 ssuv = gl_FragCoord.xy;
14 vec3 vDither = vec3( dot( vec2( 171.0, 231.0 ), ssuv) );
15 float dither = fract( vDither.g / 71.0 ) - 0.5;
16
17 if( vsamplemain.a+dither<0.5 )
18 discard;
19
20 oColour = vec4( vsamplemain.rgb, 1.0 );
21 }