minecraftjava/assets/shaders/Font_VS.glsl
2023-04-17 12:12:01 -04:00

13 lines
255 B
GLSL
Executable file

#version 330
in vec2 position;
in vec2 textureCoords;
out vec2 pass_textureCoords;
uniform vec2 translation;
void main(void){
gl_Position = vec4(position + translation * vec2(2.0, -2.0), 0.0, 1.0);
pass_textureCoords = textureCoords;
}