mirror of https://github.com/CGAL/cgal
Fix texture management in AABB demo
This commit is contained in:
parent
9a202e2bbc
commit
af3d33b5e7
|
|
@ -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"
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue