Files
vb01/gui.vert
T
devZoGok 9479e3324f implemented shadows for non positional lights
fixed skybox
implemented translation and rotation
2021-10-18 19:05:52 +03:00

17 lines
296 B
GLSL
Executable File

#version 330 core
layout (location=0) in vec3 aVert;
layout (location=2) in vec2 aTexCoords;
out vec2 texCoords;
uniform vec2 screen;
void main(){
float x,y;
x=(aVert.x-screen.x*.5)/(screen.x*.5);
y=(screen.y*.5-aVert.y)/(screen.y*.5);
gl_Position=vec4(x,y,0,1);
texCoords=aTexCoords;
}