Changed draw.odin, removed DearImgui

This commit is contained in:
sam
2026-03-22 08:34:27 +05:45
parent 09941e3e1d
commit 9af832adf6
17 changed files with 56 additions and 43 deletions
+19
View File
@@ -0,0 +1,19 @@
#version 330
in vec2 f_position;
in vec4 f_color;
in float f_thickness;
out vec4 fragColor;
void main(){
float radius = 1.0;
//distance to circle
vec2 w = f_position;
float dw = length(w);
float d = abs(dw - radius);
fragColor = vec4(f_color.rgb, smoothstep(f_thickness, 0.0, d));
}