Source

LWJGL Shader Tutorials / src / main / java / com / ra4king / opengl / arcsynthesis / gl33 / chapter3 / example2 / example3.2.vert

1
2
3
4
5
6
7
8
9
#version 330

layout(location = 0) in vec4 position;
uniform vec2 offset;

void main()
{
	gl_Position = position + vec4(offset, 0.0, 0.0);
}