wip for gui
This commit is contained in:
parent
2da7af7431
commit
775f341a65
Binary file not shown.
@ -1 +1 @@
|
|||||||
Subproject commit b0d96f26fe727d297c441ce989f3fec45095e3c3
|
Subproject commit e5f47772a5d879f3cd5848108761271876bbef0e
|
||||||
@ -3,6 +3,7 @@ import dlib.platform;
|
|||||||
import editor;
|
import editor;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
import dlib.alloc;
|
import dlib.alloc;
|
||||||
|
import dlib.util;
|
||||||
|
|
||||||
void main(string[] argv)
|
void main(string[] argv)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,7 @@ void main()
|
|||||||
|
|
||||||
float sdf_factor = 1.0 - smoothstep(0, 2*softness, dist);
|
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 tex_color = texture(sampler2D(SpriteAtlas, SamplerNearest), FD.uv);
|
||||||
vec4 out_color = FD.color * tex_color * sdf_factor;
|
vec4 out_color = FD.color * tex_color * sdf_factor;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user