Constant webxr::glwindow::ANAGLYPH_RED_CYAN_FRAGMENT_SHADER
source ยท const ANAGLYPH_RED_CYAN_FRAGMENT_SHADER: &str = "
#version 330 core
layout(location=0) out vec4 color;
uniform sampler2D image;
in vec2 left_coord;
in vec2 right_coord;
void main() {
vec4 left_color = texture(image, left_coord);
vec4 right_color = texture(image, right_coord);
float red = left_color.x;
float green = right_color.y;
float blue = right_color.z;
color = vec4(red, green, blue, 1.0);
}
";