render 3d to tex

This commit is contained in:
Daniel Ledda
2026-05-11 23:30:35 +02:00
parent e768b38322
commit 66547b0f68
10 changed files with 279 additions and 92 deletions

View File

@@ -17,6 +17,14 @@ out float frag_softness;
out float frag_border_radius;
out float frag_border_thickness;
out vec4 frag_border_color;
out vec2 uv;
const vec2 rectangle_uv[4] = vec2[](
vec2(0, 1),
vec2(0, 0),
vec2(1, 1),
vec2(1, 0)
);
const vec2 rectangle_vertices[4] = vec2[](
vec2(-1, -1),
@@ -44,4 +52,5 @@ void main() {
frag_border_thickness = border_thickness;
frag_border_color = border_color;
frag_softness = edge_softness;
uv = rectangle_uv[gl_VertexID];
}