shader.vertex.glsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pixel-artillery-2d Show documentation
Show all versions of pixel-artillery-2d Show documentation
A library for 2D OpenGL and OpenAL support based on LWJGL 3
The newest version!
#version 410
layout (location = 0) in vec3 position;
layout (location = 1) in vec2 textureCoordinate;
uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
uniform mat4 projectionMatrix;
out vec2 outTextureCoordinate;
void main()
{
gl_Position = projectionMatrix * viewMatrix * modelMatrix * vec4(position, 1.0);
outTextureCoordinate = textureCoordinate;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy