Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

21
host/oot_shadow.c Normal file
View File

@@ -0,0 +1,21 @@
/* (Triforce) The Graphics tab's Shadow resolution: the sun's cascades at the game's own larger sizes. nx2/oot_patches.py
(patch_shadow_res) calls this after the game has chosen this frame's cascade size and rounded it to a multiple of 8,
before it stores the size.
The sizes are the game's: at the quality level it runs at its table holds 1600, the size it uses, and 2200, the
largest of that level's entries; 3072 is its highest level's. Only the sun's shadow object is changed. The size is
raised, never lowered, so a frame where the game asks for more keeps the game's. Nothing is written to the game's
memory: Game's (the row's default, HOS_OPT_SHADOW_RES 0) gives the game's size again from the next frame. */
#include "hos.h"
#include "../gpu/vk/vk_api.h"
int rx_option(int id, int otherwise);
/* shadow: the shadow object being sized (x19); rounded: the size the game rounded (w23). The size to go on with */
uint64_t hos_oot_shadow_size(Ctx *c, uint64_t shadow, uint64_t rounded) {
const int choice = rx_option(HOS_OPT_SHADOW_RES, 0);
if (choice < 1 || choice > 2 || !shadow) return rounded;
if (recomp_load64(c, shadow) != 0x84baa0a8ULL) return rounded; /* the sun's shadow object (its vtable) */
const uint32_t size = choice == 1 ? 2200 : 3072;
return (uint32_t)rounded < size ? size : rounded;
}