// This file was autogenerated from src/shaders_gl21/*.glsl. Run `make shaders` to update.

const char*
circle_vs_src =
"#version 120\n"
"attribute vec2 pos;"
"varying vec2 fpos;"
"void main(){"
"fpos=pos;"
"gl_Position=vec4(pos,0,1);"
"}";


const char*
font_vs_src =
"#version 120\n"
"attribute vec4 coord;"
"varying vec2 tex_coord;"
"void main(){"
"tex_coord=coord.zw;"
"gl_Position=vec4(coord.xy,0,1);"
"}";


const char*
image_rgb_vs_src =
"#version 120\n"
"attribute vec4 coord;"
"uniform vec2 offset;"
"varying vec2 tex_coord;"
"void main(){"
"tex_coord=coord.zw;"
"gl_Position=vec4(coord.xy+offset,0,1);"
"}";


const char*
line_a_vs_src =
"#version 120\n"
"attribute vec2 pos;"
"void main(){"
"gl_Position=vec4(pos,0,1);"
"}";


const char*
line_vs_src =
"#version 120\n"
"attribute vec2 pos;"
"void main(){"
"gl_Position=vec4(pos,0,1);"
"}";


const char*
solid_fill_vs_src =
"#version 120\n"
"attribute vec2 pos;"
"void main(){"
"gl_Position=vec4(pos,0,1);"
"}";


const char*
circle_fs_src =
"#version 120\n"
"uniform vec4 clr;"
"uniform vec4 bclr;"
"uniform vec4 cir;"
"varying vec2 fpos;"
"void main(){"
"gl_FragColor=mix(bclr,clr,smoothstep(cir.z+cir.w,cir.z-cir.w,distance(cir.xy,fpos)));"
"}";


const char*
font_depth_blend_fs_src =
"#version 120\n"
"uniform sampler2D tex;"
"varying vec2 tex_coord;"
"void main(){"
"vec3 c=texture2D(tex,tex_coord).rgb;"
"gl_FragDepth=1.0-length(c)/length(vec3(1,1,1));"
"gl_FragColor=vec4(c,1);"
"}";


const char*
font_fs_src =
"#version 120\n"
"uniform vec3 clr;"
"uniform vec4 bclr;"
"uniform sampler2D tex;"
"varying vec2 tex_coord;"
"void main(){"
"vec3 c=texture2D(tex,tex_coord).rgb;"
"float a=length(c)/1.7320508075688772;"
"gl_FragDepth=1.0-a;"
"gl_FragColor=vec4(mix(bclr.rgb,clr,c),bclr.a+a*(1.0-bclr.a));"
"}";


const char*
font_gray_fs_src =
"#version 120\n"
"uniform vec3 clr;"
"uniform vec4 bclr;"
"uniform sampler2D tex;"
"varying vec2 tex_coord;"
"void main(){"
"float c=texture2D(tex,tex_coord).r;"
"gl_FragDepth=1.0-c;"
"gl_FragColor=vec4(mix(bclr.rgb*bclr.a,clr,c),bclr.a+c*(1.0-bclr.a));"
"}";


const char*
image_rgb_fs_src =
"#version 120\n"
"uniform sampler2D tex;"
"varying vec2 tex_coord;"
"void main(){"
"gl_FragColor=texture2D(tex,tex_coord);"
"}";


const char*
image_tint_rgb_fs_src =
"#version 120\n"
"uniform sampler2D tex;"
"uniform vec3 tint;"
"varying vec2 tex_coord;"
"void main(){"
"gl_FragColor=texture2D(tex,tex_coord)*vec4(tint,1.0);"
"}";


const char*
line_a_fs_src =
"#version 120\n"
"uniform vec4 clr;"
"void main(){"
"gl_FragData[0]=clr;"
"}";


const char*
line_fs_src =
"#version 120\n"
"uniform vec3 clr;"
"void main(){"
"gl_FragData[0]=vec4(clr,1);"
"}";


const char*
solid_fill_fs_src =
"#version 120\n"
"uniform vec4 clr;"
"void main(){"
"gl_FragColor=clr;"
"}";
