Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCD text is not visible from distance #58

Open
numberZero opened this issue Sep 10, 2019 · 0 comments
Open

LCD text is not visible from distance #58

numberZero opened this issue Sep 10, 2019 · 0 comments

Comments

@numberZero
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant