Use channel swizzling for default 9x12 font
This commit is contained in:
parent
a5ddc2eb7c
commit
867deddd87
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ namespace psemek::ui
|
|||
gfx::texture_2d atlas = gfx::texture_2d::from_pixmap(gfx::read_pbm(is));
|
||||
atlas.nearest_filter();
|
||||
atlas.clamp();
|
||||
gl::TexParameteri(atlas.target, gl::TEXTURE_SWIZZLE_G, gl::RED);
|
||||
gl::TexParameteri(atlas.target, gl::TEXTURE_SWIZZLE_B, gl::RED);
|
||||
gl::TexParameteri(atlas.target, gl::TEXTURE_SWIZZLE_A, gl::RED);
|
||||
|
||||
std::vector<geom::box<float, 2>> texcoords(range.end - range.begin);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue