Skip to content

Instantly share code, notes, and snippets.

@danicomas
Last active October 4, 2020 09:07
Show Gist options
  • Save danicomas/0bbd679d2d7da18bc61ee23b36096a16 to your computer and use it in GitHub Desktop.
Save danicomas/0bbd679d2d7da18bc61ee23b36096a16 to your computer and use it in GitHub Desktop.
Opengl shading - Fragment
uniform sampler2D sampler;
void main()
{
vec2 perturbatedTexCoords = vec2(gl_TexCoord[0].s * 4.0, gl_TexCoord[0].t * 4.0);
gl_FragColor = texture2D(sampler, perturbatedTexCoords);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment