Uniform-nearest interpolation shader

This is just a ripoff from my gizmo-crt shader. Get a nearest neighbor looking result with fractional scaling with texture AA shader and subpixel scaling. Nearest neighbor produces uneven pixel sizes if fractional scaling is use. If a sprite moves over the screen it changes dimensions all the time, which looks like a wobbling effect. This shader gives all pixels the same dimension, which looks much quieter. This should be good for handhelds.

Source: gizmo-crt-shader/glsl_shaders/interpolate at main · gizmo98/gizmo-crt-shader · GitHub

Original:

Zoomed in:

6 Likes

Subpixel scaling is like Cleartype for nearest neighbor interpolation. We can use 3 times of the horizontal resolution for scaling. It works, if your LCD has a RGB or BGR pattern.

Example:

3 Likes

This shader is now part of libretro/glsl-shader. If someone likes nearest look, use this shader, because it looks superior with moving objects compared to pure nearest.

2 Likes

I saw it, interesting. I like that smooth look.

1 Like

Shader is now part of libretro/slang-shaders.

1 Like