mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
@@ -1044,11 +1044,23 @@ void LevelRenderer::renderHitOutline(Player* pPlayer, const HitResult& hr, int i
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 0.4f);
|
||||
glLineWidth(10.0f);
|
||||
glColor4f(0.0f, 0.0f, 0.0f, 0.4f);
|
||||
//glLineWidth(1.0f);
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
glDepthMask(false);
|
||||
|
||||
// Maximize Line Width
|
||||
glEnable(GL_LINE_SMOOTH);
|
||||
|
||||
float range[2];
|
||||
glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, range);
|
||||
|
||||
float lineWidth = 2.0f;
|
||||
if (lineWidth > range[1])
|
||||
lineWidth = range[1];
|
||||
|
||||
glLineWidth(lineWidth);
|
||||
|
||||
TileID tile = m_pLevel->getTile(hr.m_tileX, hr.m_tileY, hr.m_tileZ);
|
||||
if (tile > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user