#version 410 uniform float opacity; uniform sampler2D texture1; in vec2 uvV; out vec4 fragColor; void main (void) { vec4 p = texture(texture1, uvV); p.a = opacity; //p *= opacity; fragColor = p; }