W
W
Way2017-01-03 21:43:49
Java
Way, 2017-01-03 21:43:49

How to smooth the edges of a 2D texture?

Hello, the game outputs a texture that has ladders on the edges when scaled down (GLScale)
8b6e8c8d1bcc42bd8b7518868bd93337.png
and this is what it looks like in the original game:
c54fa35e25044526b6e3ae760b8c9021.png
How can I smooth these edges?
Didn't help:
GL11.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
GL11.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2017-01-03
@usdglander

Not an expert, but perhaps instead of GL_LINEAR you need to write something like GL_NEAREST
upd: Have you read this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question