ChonkyStation/textured.vert
2022-08-21 22:41:53 +02:00

22 lines
No EOL
610 B
GLSL

#version 330 core
layout (location = 0) in vec3 pos;
uniform vec3 offset;
layout (location = 1) in vec3 Colour;
layout (location = 2) in vec2 aTexCoord;
layout (location = 3) in vec2 aTexpageCoords;
layout (location = 4) in vec2 aClut;
out vec3 VertexColour;
out vec2 TexCoord;
flat out vec2 texpageCoords;
flat out vec2 clut;
uniform int colourDepth;
void main()
{
gl_Position = vec4(float(pos.x + offset.x) / 512 - 1, -(1 - float(pos.y + offset.y) / 256), 0.0, 1.0);
VertexColour = Colour;
TexCoord = aTexCoord;
texpageCoords = aTexpageCoords;
clut = aClut;
}