mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
prevent bleeding at font texture edge
This commit is contained in:
parent
5be710f8b5
commit
d90ca2b6f7
@ -51,10 +51,11 @@ DynamicTextPage(DynamicTextFont *font, int page_number) :
|
||||
|
||||
set_anisotropic_degree(_font->get_anisotropic_degree());
|
||||
|
||||
// It's slightly better to let the texture clamp, rather than
|
||||
// wrapping, so we're less likely to get bleeding at the edges.
|
||||
set_wrap_u(WM_clamp);
|
||||
set_wrap_v(WM_clamp);
|
||||
// Clamp to an explicit invisible border, so we don't get bleeding
|
||||
// at the edges at all.
|
||||
set_wrap_u(WM_border_color);
|
||||
set_wrap_v(WM_border_color);
|
||||
set_border_color(Colorf(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user