Skip to content

Instantly share code, notes, and snippets.

@gamefreak
Created March 29, 2010 01:56
Show Gist options
  • Save gamefreak/347257 to your computer and use it in GitHub Desktop.
Save gamefreak/347257 to your computer and use it in GitHub Desktop.
uniform vec2 offset;
void main()
{
gl_Position = gl_PositionIn[0];
EmitVertex();
gl_Position = gl_PositionIn[0] + vec4(offset,0,0);
EmitVertex();
EndPrimitive();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment