Page MenuHome

Changes to internal icons interpolation algorithm
ClosedPublic

Authored by Yevgeny Makarov (jenkm) on Jan 23 2020, 8:54 PM.

Details

Summary

Changes to internal icons interpolation algorithm.

This patch changes the GL_TEXTURE_MIN_FILTER parameter from GL_LINEAR_MIPMAP_LINEAR to GL_LINEAR_MIPMAP_NEAREST.
It gives a sharper result, since with these settings only down scaling is used.

Also, these changes are necessary for D5655 (Support for custom icon sheets).

Comparison LINEAR (top) vs NEAREST (bottom) at a scale of 1.4x:

Various scales, new NEAREST on the left, old LINEAR on the right:

Diff Detail

Repository
rB Blender

Event Timeline

Looks better to me. Implementation is also fine.

This revision is now accepted and ready to land.Jan 23 2020, 9:01 PM

We used to have something like this, but seems it got lost in the OpenGL refactor.
rBec85a4370f1a: UI DPI: use a sharper filter when scaling icons, when the scale matches a…

I agree it's better to bias for sharpness.