Increase anti z-fighting value

This commit is contained in:
Atlante45 2015-06-17 19:25:40 +02:00
parent 045a6a6ad9
commit c38fa46eb1

View file

@ -746,7 +746,7 @@ void Avatar::renderDisplayName(gpu::Batch& batch, const ViewFrustum& frustum) co
const int text_y = -nameDynamicRect.height() / 2;
// Compute background position/size
static const float SLIGHTLY_BEHIND = -0.01f;
static const float SLIGHTLY_BEHIND = -0.05f;
const int border = 0.1f * nameDynamicRect.height();
const int left = text_x - border;
const int bottom = text_y - border;