Dicewars-Siedler/assets/shaders/vertexShader.glsl
2026-02-07 18:57:58 +01:00

17 lines
334 B
GLSL

#version 400 core
in vec3 position;
in vec2 textureCoords;
out vec2 pass_textureCoords;
uniform mat4 transformationMatrix;
uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;
void main()
{
gl_Position = projectionMatrix * viewMatrix * transformationMatrix * vec4(position, 1.0f);
pass_textureCoords = textureCoords;
}