WIP: GUI Toolkit
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
uniform mat4 projection_matrix;
|
||||
uniform mat4 modelview_matrix;
|
||||
|
||||
in vec3 vertex;
|
||||
in vec3 vertecColor;
|
||||
layout(location = 0) in vec3 vertex;
|
||||
layout(location = 3) in vec3 vertecColor;
|
||||
|
||||
out vec3 fragColor;
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
#version 330 core
|
||||
#extension GL_ARB_shading_language_420pack : enable
|
||||
|
||||
uniform mat4 projection_matrix;
|
||||
|
||||
layout(location = 0) in vec2 vertex;
|
||||
layout(location = 1) in vec2 vertexTC;
|
||||
|
||||
out vec2 fragTC;
|
||||
|
||||
void main(void) {
|
||||
vec4 pos = vec4(vertex, 0.0, 1.0);
|
||||
vec4 pos = projection_matrix * vec4(vertex, 0.0, 1.0);
|
||||
gl_Position = pos;
|
||||
fragTC = vertexTC;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user