Skip to content

Implement Area sampling for scaling the internal resolution#197

Merged
encounter merged 2 commits into
encounter:mainfrom
Irastris:resampling
May 18, 2026
Merged

Implement Area sampling for scaling the internal resolution#197
encounter merged 2 commits into
encounter:mainfrom
Irastris:resampling

Conversation

@Irastris
Copy link
Copy Markdown
Contributor

@Irastris Irastris commented May 17, 2026

Adds Area as a resampling method which, when compared to the current Bilinear method, simultaneously produces a cleaner, softer image when downscaling the internal resolution, and a significantly sharper image when upscaling. It's even a pretty decent substitute for anti-aliasing, but we can still do better on that front.

Dolphin's GLSL implementation was my sole reference for the technique while learning how to do it in WGSL. The Area sampling method itself is said to be public domain, so I believed that to be okay and just a matter of convenience. If it actually does present a licensing problem, please close this PR.

Allows non-Bilinear resampling to work regardless of RmlUi being init
@encounter encounter merged commit 312514b into encounter:main May 18, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants