Constant conrod_glium::FRAGMENT_SHADER_300_ES [−][src]
pub const FRAGMENT_SHADER_300_ES: &'static str = " #version 300 es precision mediump float; 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; } } ";
Expand description
The fragment shader used within the glium::Program
for OpenGL ES.