Skip to content

Instantly share code, notes, and snippets.

@Kimundi
Created July 5, 2014 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kimundi/8b697a3e605c113ffa5d to your computer and use it in GitHub Desktop.
Save Kimundi/8b697a3e605c113ffa5d to your computer and use it in GitHub Desktop.
static VERTEX_SRC: ShaderSource = shaders! {
GLSL: b"
attribute vec2 a_Pos;
varying vec4 v_Color;
void main() {
v_Color = vec4(a_Pos+0.5, 1.0, 1.0);
gl_Position = vec4(a_Pos, 0.0, 1.0);
}
"
GLSL_150: b"
#version 150 core
in vec2 a_Pos;
out vec4 v_Color;
void main() {
v_Color = vec4(a_Pos+0.5, 0.0, 1.0);
gl_Position = vec4(a_Pos, 0.0, 1.0);
}
"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment