Fix grid draw, circle draw, most editor drawing

This commit is contained in:
2023-08-23 22:18:34 +00:00
parent 09765f5336
commit f94c62c5c0
10 changed files with 53 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
#version 330
out vec4 frag_color;
in vec2 apos;
in vec2 apos; /* Drawing coordinates of the grid */
uniform float thickness; /* thickness in pixels */
uniform float span;

View File

@@ -13,6 +13,7 @@ void main()
{
// vec4 ipos = inverse(projection) * vec4(pos, 0.f, 1.f);
apos = pos * vec2(600, 360);
apos += offset;
// apos = pos + offset;