#version 330 uniform sampler2D tex; in vec2 tex_coord_int; out vec4 fragColor; void main(){ // fragColor = texture(tex, tex_coord_int); fragColor = vec4(0.5) + 0.5*sin(0.1 * texture(tex, tex_coord_int)); }