gfx: Text: add ability to change font color

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-05-22 08:22:20 -07:00
parent f79351ed59
commit 031164d9b5
2 changed files with 6 additions and 5 deletions

View file

@ -274,7 +274,7 @@ fn updatePipeline(
.size = size.divScalar(px_density),
.text_index = num_texts,
.uv_pos = vec2(@floatFromInt(r.x), @floatFromInt(r.y)),
.font_color = font_color,
.color = font_color,
});
origin_x += glyph.advance.x();
}