Skip to content

Instantly share code, notes, and snippets.

@Shaptic
Last active December 12, 2015 09:28
Show Gist options
  • Save Shaptic/4751277 to your computer and use it in GitHub Desktop.
Save Shaptic/4751277 to your computer and use it in GitHub Desktop.
#version 330 core
uniform sampler2D texture;
uniform vec2 tc_offset;
uniform vec2 tc_start;
smooth in vec2 fs_texc;
smooth in vec4 fs_color;
out vec4 out_color;
void main()
{
out_color = texture2D(texture, tc_start + (fs_texc * tc_offset)) * fs_color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment