Skip to content

Comments

Add texture filter override setting, expose anisotropic filtering#574

Merged
flyinghead merged 1 commit intoflyinghead:masterfrom
Calinou:add-texture-filter-override-aniso
Apr 1, 2022
Merged

Add texture filter override setting, expose anisotropic filtering#574
flyinghead merged 1 commit intoflyinghead:masterfrom
Calinou:add-texture-filter-override-aniso

Conversation

@Calinou
Copy link
Contributor

@Calinou Calinou commented Mar 31, 2022

The new texture filter option can be set to:

  • Default (keeps the game's intended filter mode).
  • Force Nearest-Neighbor (crisper appearance).
  • Force Linear (smoother appearance).

Additionally, mipmapping can now be enabled on nearest neighbor-filtered textures (which is used if nearest-neighbor filtering is enabled, including with anisotropic filtering).

Anisotropic filtering was already implemented in both OpenGL and Vulkan, but it was not exposed in the GUI.

I've only tested this on one game so far. Also, apologies for the relatively large change, but it was easier for me to consolidate both the texture filtering setting and anisotropic filtering changes. I can make two separate PRs if desired.

This closes #563 and also helps resolve #432.

TODO

  • Implement on Direct3D. I don't have a Windows development setup around, so I can't test it though. Alternatively, I could hide the texture filtering option on Direct3D until someone else implements it.

The new texture filter option can be set to:

- Default (keeps the game's intended filter mode).
- Force Nearest-Neighbor (crisper appearance).
- Force Linear (smoother appearance).

Additionally, mipmapping can now be enabled on nearest neighbor-filtered
textures (which is used if nearest-neighbor filtering is enabled, including
with anisotropic filtering).

Anisotropic filtering was already implemented in both OpenGL and Vulkan,
but it was not exposed in the GUI.
@flyinghead flyinghead merged commit a9cabdc into flyinghead:master Apr 1, 2022
@flyinghead
Copy link
Owner

Thank you for your contribution

@Calinou Calinou deleted the add-texture-filter-override-aniso branch April 1, 2022 17:05
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.

Disable linear filtering? kofxi,ngbc,character sprites broken

2 participants