Created
July 5, 2014 19:58
-
-
Save Kimundi/8b697a3e605c113ffa5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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