Fix texture management in AABB demo

This commit is contained in:
Maxime Gimeno 2021-01-14 09:49:57 +01:00
parent 9a202e2bbc
commit af3d33b5e7
1 changed files with 2 additions and 2 deletions

View File

@ -156,11 +156,11 @@ void Scene::compile_shaders()
const char tex_fragment_source[] =
{
"#version 150 \n"
"uniform sampler2D texture;\n"
"uniform sampler2D s_texture;\n"
"in highp vec2 texc;\n"
"out highp vec4 out_color; \n"
"void main(void) { \n"
"out_color = texture2D(texture, texc.st);\n"
"out_color = vec4(texture(s_texture, texc));\n"
"} \n"
"\n"
};