Add remaining GLSL version directives

Related to #864.
This commit is contained in:
Camilla Löwy
2016-12-05 14:16:46 +01:00
parent 1b17a5293c
commit 1252016b9c
5 changed files with 10 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ static const struct
};
static const char* vertex_shader_text =
"#version 110\n"
"uniform mat4 MVP;\n"
"attribute vec3 vCol;\n"
"attribute vec2 vPos;\n"
@@ -62,6 +63,7 @@ static const char* vertex_shader_text =
"}\n";
static const char* fragment_shader_text =
"#version 110\n"
"varying vec3 color;\n"
"void main()\n"
"{\n"

View File

@@ -44,6 +44,7 @@ static const struct
};
static const char* vertex_shader_text =
"#version 110\n"
"uniform mat4 MVP;\n"
"attribute vec3 vCol;\n"
"attribute vec2 vPos;\n"
@@ -55,6 +56,7 @@ static const char* vertex_shader_text =
"}\n";
static const char* fragment_shader_text =
"#version 110\n"
"varying vec3 color;\n"
"void main()\n"
"{\n"