gfx: Text: add ability to change font color
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f79351ed59
commit
031164d9b5
2 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue