1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 11:27:38 +00:00

Fix texture artifacts when rendering monitors

- Adds a 1px margin around every glyph. This is generally empty,
   with the exception of teletext characters where it continues their
   pattern.
 - Uses GL_CLAMP with the font texture.

Closes #300
This commit is contained in:
SquidDev
2017-07-10 22:20:07 +01:00
parent 94d701b1f7
commit 1cf3d78eac
3 changed files with 19 additions and 10 deletions

View File

@@ -179,7 +179,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
GlStateManager.callList( origin.m_renderDisplayList );
// Draw text
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
fontRenderer.bindFont();
if( redraw )
{
// Build text display list
@@ -206,7 +206,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
GlStateManager.callList( origin.m_renderDisplayList + 1 );
// Draw cursor
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
fontRenderer.bindFont();
if( redraw )
{
// Build cursor display list