Fixing circle shader

This commit is contained in:
2023-02-26 17:28:52 +00:00
parent 186c83659c
commit b2b54ddce9
3 changed files with 22 additions and 4 deletions

View File

@@ -7,8 +7,13 @@ layout (std140) uniform Projection
mat4 projection;
};
layout (std140) uniform Resolution
{
vec2 resolution;
};
void main()
{
gl_Position = projection * vec4(vertex.xy, 0.0, 1.0);
coords = vertex.zw;
}
coords = vertex.zw*resolution;
}