mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
text uses material
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#version 330 core
|
||||
|
||||
layout (location=0) in vec3 aVert;
|
||||
layout (location=2) in vec2 aTexCoords;
|
||||
layout (location = 0) in vec3 aVert;
|
||||
layout (location = 2) in vec2 aTexCoords;
|
||||
|
||||
out vec2 texCoords;
|
||||
|
||||
@@ -9,9 +9,9 @@ uniform vec2 screen;
|
||||
uniform vec3 pos;
|
||||
|
||||
void main(){
|
||||
float x,y;
|
||||
x=(aVert.x+pos.x-screen.x*.5)/(screen.x*.5);
|
||||
y=(screen.y*.5-(aVert.y+pos.y))/(screen.y*.5);
|
||||
gl_Position=vec4(x,y,pos.z+aVert.z,1);
|
||||
texCoords=aTexCoords;
|
||||
float x, y;
|
||||
x = (aVert.x + pos.x - screen.x * .5) / (screen.x * .5);
|
||||
y = (screen.y * .5 - (aVert.y + pos.y)) / (screen.y * .5);
|
||||
gl_Position = vec4(x, y, pos.z + aVert.z, 1);
|
||||
texCoords = aTexCoords;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user