minecraftjava/assets/shaders/Font_VS.glsl

14 lines
255 B
Text
Raw Permalink Normal View History

2023-04-17 16:12:01 +00:00
#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;
}