minetest-mods / digilines

Digilines is a mod for minetest which adds data bus wires
Other
40 stars 37 forks source link

LCD text is not visible from distance #58

Open numberZero opened 5 years ago

numberZero commented 5 years ago

screenshot_20190910_190527

The reason is that mipmapping blends transparent and opaque pixels together, but the resulting pixels are alpha-tested and not alpha-blended (that is, each pixel is either drawn or not, no intermediate states). But there is a simple workaround: use opaque background in the entity.

screenshot_20190910_190500

To render that, I replaced local texture = "[combine:"..LCD_WITH.."x"..LCD_WITH with local texture = "lcd_anyside.png^[resize:"..LCD_WITH.."x"..LCD_WITH.."^[combine:"..LCD_WITH.."x"..LCD_WITH but that looks blurry when filtering is enabled.