wip for gui

This commit is contained in:
Matthew 2025-08-24 18:14:33 +10:00
parent 2da7af7431
commit 775f341a65
4 changed files with 3 additions and 2 deletions

Binary file not shown.

@ -1 +1 @@
Subproject commit b0d96f26fe727d297c441ce989f3fec45095e3c3
Subproject commit e5f47772a5d879f3cd5848108761271876bbef0e

View File

@ -3,6 +3,7 @@ import dlib.platform;
import editor;
import std.stdio;
import dlib.alloc;
import dlib.util;
void main(string[] argv)
{

View File

@ -40,7 +40,7 @@ void main()
float sdf_factor = 1.0 - smoothstep(0, 2*softness, dist);
debugPrintfEXT("%v2f %v2f %v2f", FD.dst_pos, FD.dst_center, FD.dst_half_size);
debugPrintfEXT("%v2f %v2f %v2f %f", FD.dst_pos, FD.dst_center, FD.dst_half_size, sdf_factor);
vec4 tex_color = texture(sampler2D(SpriteAtlas, SamplerNearest), FD.uv);
vec4 out_color = FD.color * tex_color * sdf_factor;