I have a texture and i would like to apply to it a glsl shader. Is it possible and how to do it ? For example i want to apply this glsl shader to my texture :
varying vec4 coord;
uniform sampler2D texture;
uniform float opacity;
void main() {
vec4 col = texture2D(texture, coord.xy);
col.a *= opacity;
gl_FragColor = col;
}