From 02411226176f889a79337546a9218c1ec5d533a5 Mon Sep 17 00:00:00 2001 From: getdls <25286924+getdls@users.noreply.github.com> Date: Wed, 29 Apr 2020 19:52:45 +0200 Subject: [PATCH] Hyrule Warriors - Increase draw distance culling.. --- .../patch_drawDistance.asm | 27 +++++++++++++++++++ .../rules.txt | 11 ++++++++ 2 files changed, 38 insertions(+) create mode 100644 Mods/HyruleWarriors_IncreaseDrawDistance/patch_drawDistance.asm create mode 100644 Mods/HyruleWarriors_IncreaseDrawDistance/rules.txt diff --git a/Mods/HyruleWarriors_IncreaseDrawDistance/patch_drawDistance.asm b/Mods/HyruleWarriors_IncreaseDrawDistance/patch_drawDistance.asm new file mode 100644 index 00000000..617a98f5 --- /dev/null +++ b/Mods/HyruleWarriors_IncreaseDrawDistance/patch_drawDistance.asm @@ -0,0 +1,27 @@ +[DrawDistance_v208] +moduleMatches = 0xE159AE91 +.origin = codecave +##object clip +#0x100DD068 = .float 1.5 #0.5 +0x100DD06C = .float 1.5 #3.0 +#0x025F0554 = nop #same as setting 0x100DD06C to 0. Fix this when instruction supported. +#0x025F02F4 = nop # +#stage clip +0x100DFEC4 = .float 3.0 +0x100DFEC8 = .float 3.0 +##stage object lod +0x100DFDB8 = .float 3.0 +0x100DFDBC = .float 3.0 +0x100DFDD4 = .float 3.0 +0x100DFDD8 = .float 3.0 +0x100DFDFC = .float 3.0 +#fov +#0x10006FD0 = .float 0.015 #fov .float 0.017453292 # DATA XREF: CActFunc::GetViewParameter((PLAYER_ID,S_VIEW_PARAM &,uint))+194o +# scatter light (fog) +#0x1001CA64 = .float 2.5 # 2.0 default, 4.0 dark +#NPC text lod +#0x1009E134 = .float -8.0 #flt_1009E134: .float -1.0 # DATA XREF: CActModuleModelCommon::fGetMipLodBias(const(void))+4Co +#0x1009E138 = .float 0.0 #flt_1009E138: .float 0.0 # DATA XREF: CActModuleModelCommon::fGetMipLodBias(const(void)):loc_22BF3FCo +##dist from link +#0x100962BC = .float 0.25 #flt_100962BC: .float 0.0 + diff --git a/Mods/HyruleWarriors_IncreaseDrawDistance/rules.txt b/Mods/HyruleWarriors_IncreaseDrawDistance/rules.txt new file mode 100644 index 00000000..0e67b19f --- /dev/null +++ b/Mods/HyruleWarriors_IncreaseDrawDistance/rules.txt @@ -0,0 +1,11 @@ +[Definition] +titleIds = 000500001017D800,000500001017D900,000500001017CD00 +name = Increase draw distance +path = "Hyrule Warriors/Mods/Increase draw distance" +description = More stuff further away +version = 4 + +## reminders: +#NPC rendering can be increased, but some other total nr on screen limiter kicks in +#When moving between zones, culling re-sets +