Make use of (and require) OpenGL 4.x features present in mesa 11.0+

This commit is contained in:
2015-10-08 14:31:57 +02:00
parent a9b339019b
commit e297b21762
11 changed files with 93 additions and 102 deletions

13
shaders/overlay.frag Normal file
View File

@@ -0,0 +1,13 @@
#version 330 core
#extension GL_ARB_explicit_uniform_location : enable
layout(location = 1) uniform sampler2D texBase;
in vec2 fragTC;
layout(location = 0) out vec4 color;
void main(void) {
vec4 texCol = texture(texBase, fragTC);
color = texCol*texCol.w;
}