Mon, 16 Jun 2025 20:58:51 +0200
change order of members in asc_behavior_create_args so that you can just specify the func without designators
layout(location = 0) out vec4 diffuse; in vec2 uvcoord; uniform vec4 color; uniform vec2 size; #ifndef FILL uniform float thickness; #endif void main(void) { #ifdef FILL diffuse = color; #else if (uvcoord.x < thickness || uvcoord.x >= size.x - thickness || uvcoord.y < thickness || uvcoord.y >= size.y-thickness) { diffuse = color; } else { discard; } #endif }