[−][src]Constant conrod_glium::FRAGMENT_SHADER_140
pub const FRAGMENT_SHADER_140: &'static str = " #version 140 uniform sampler2D tex; in vec2 v_tex_coords; in vec4 v_color; flat in uint v_mode; out vec4 f_color; void main() { // Text if (v_mode == uint(0)) { f_color = v_color * vec4(1.0, 1.0, 1.0, texture(tex, v_tex_coords).r); // Image } else if (v_mode == uint(1)) { f_color = texture(tex, v_tex_coords); // 2D Geometry } else if (v_mode == uint(2)) { f_color = v_color; } } ";
The fragment shader used within the glium::Program
for OpenGL.