Source

LWJGL Shader Tutorials / src / com / ra4king / opengl / arcsynthesis / gl33 / chapter14 / example3 / example14.3.Unlit.vert

Roi Atalla 489be49 















#version 330

layout(std140) uniform;

layout(location = 0) in vec3 position;

uniform Projection
{
	mat4 cameraToClipMatrix;
};

uniform mat4 modelToCameraMatrix;

void main()
{
	gl_Position = cameraToClipMatrix * modelToCameraMatrix * vec4(position, 1.0);
}