Add imgui

This commit is contained in:
2020-03-21 22:38:10 +01:00
parent b22be7d6a5
commit 4a7e0ac82a
178 changed files with 73595 additions and 94 deletions

View File

@@ -1,11 +1,10 @@
#version 330 core
layout (location = 0) in vec2 inputVertex;
uniform float zoom;
uniform vec2 pos_offset;
uniform mat4 model_matrix;
uniform mat4 projection_view_matrix;
void main()
{
vec2 pos2d = (inputVertex - pos_offset) * zoom;
gl_Position = vec4(pos2d.x , pos2d.y, 0.0, 1.0);
gl_Position = projection_view_matrix * model_matrix * vec4(inputVertex.x , inputVertex.y, 0.0, 1.0);
}