slang-shaders/interpolation/uniform-nearest.slangp
gizmo98 5fc0d5396b Add uniform-nearest shader
Features:
- produces nearest neighbor look with fractional scales.
- uses texture AA shader code.
- uses hotizontal subpixel scaling.
- due to different pixel sizes, moving sprites change dimension if nearest neighbor is used with fractional scaling. This looks unsteady. This shader uniforms pixel dimensions. Output looks much quieter.

https://forums.libretro.com/t/uniform-nearest-interpolation-shader/41492
2023-05-04 20:10:58 +02:00

9 lines
160 B
Plaintext

shaders = "1"
shader0 = "shaders/uniform-nearest.slang"
filter_linear0 = "true"
scale_type0 = viewport
parameters = "BGR_LCD_PATTERN"
BGR_LCD_PATTERN = "0.0"