|
@@ -38,6 +38,7 @@
|
|
#include "linmath.h"
|
|
#include "linmath.h"
|
|
|
|
|
|
static const char* vertex_shader_text =
|
|
static const char* vertex_shader_text =
|
|
|
|
+"#version 110\n"
|
|
"uniform mat4 MVP;\n"
|
|
"uniform mat4 MVP;\n"
|
|
"attribute vec2 vPos;\n"
|
|
"attribute vec2 vPos;\n"
|
|
"varying vec2 texcoord;\n"
|
|
"varying vec2 texcoord;\n"
|
|
@@ -48,6 +49,7 @@ static const char* vertex_shader_text =
|
|
"}\n";
|
|
"}\n";
|
|
|
|
|
|
static const char* fragment_shader_text =
|
|
static const char* fragment_shader_text =
|
|
|
|
+"#version 110\n"
|
|
"uniform sampler2D texture;\n"
|
|
"uniform sampler2D texture;\n"
|
|
"uniform vec3 color;\n"
|
|
"uniform vec3 color;\n"
|
|
"varying vec2 texcoord;\n"
|
|
"varying vec2 texcoord;\n"
|