mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 12:25:56 +00:00
Add an anisotropic filtering setting
aniso (game, 2, 4, 8, 16; default 16) raises anisotropic filtering of the game's tiled, filtered, mipmapped colour samplers, so ground and paths seen at a shallow angle stay sharp into the distance instead of smearing. Depth-compare, nearest, unmipmapped and clamped samplers keep the game's level: clamped samplers read screen-sized buffers, where anisotropic taps reach across an object's edge and leave a speckled fringe (the inventory's character preview). The wrap test reads the game's own modes, so mirror-clamp samplers stay out on devices without mirror-clamp-to-edge, where they map to mirrored repeat. Read at start, as samplers are cached. Ported from the aniso half of itaskaev2's shadow and filtering commit and applezra's follow-up that limits it to tiling samplers. On the Screen tab of the settings menu (English and Russian) and in totk.ini.example. Co-Authored-By: itaskaev2 <165683571+itaskaev2@users.noreply.github.com> Co-Authored-By: applezra <Ezra.s.swenson@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f469c5a774
commit
6f8dc257be
7 files changed
+37
-5
No files matched your search
@@ -629,6 +629,9 @@ static void tab_screen(float scale) {
|
||||
static const UiTextId aspect[] = {UI_MENU_ASPECT_FIT, UI_MENU_ASPECT_STRETCH};
|
||||
opt_choice("TOTK_ASPECT", UI_MENU_ASPECT, aspect, 2, UI_MENU_ASPECT_DESC);
|
||||
opt_slider("TOTK_FOV", UI_MENU_FOV, 70, 140, UI_MENU_FOV_DESC, 5, "%.0f %%");
|
||||
static const char *const aniso[] = {"game", "2", "4", "8", "16"};
|
||||
const char *aniso_names[] = {menu_text(UI_MENU_ANISO_GAME), "2x", "4x", "8x", "16x"};
|
||||
opt_choice_list("TOTK_ANISO", UI_MENU_ANISO, aniso, aniso_names, 5, UI_MENU_ANISO_DESC);
|
||||
rows_color();
|
||||
opt_end();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user