From 30b88f72a03d70329bc92cf9444f237f1a9f39a4 Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Wed, 19 Jan 2022 01:42:23 +0100 Subject: [PATCH] [BotW] Fix tree draw distance, add grass density/draw distance option Also fix a typo in the Remove Fog description. --- .../Mods/DrawDistance/patch_DrawDistance.asm | 14 ++++-- .../Mods/DrawDistance/rules.txt | 49 ++++++++++++++++--- src/BreathOfTheWild/Mods/RemoveFog/rules.txt | 2 +- 3 files changed, 53 insertions(+), 12 deletions(-) diff --git a/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm b/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm index 12f26e5b..0a0090c8 100644 --- a/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm +++ b/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm @@ -3,6 +3,7 @@ moduleMatches = 0x6267BFD0 .origin = codecave +; Actor draw distance actorMultiplier: .float $actor @@ -16,13 +17,13 @@ blr 0x03857F5C = bla _setActorDrawDistanceMultiplier +; Object draw distance objectMultiplier: .float $object objectDivider: .float 1.0 - ($object - 1.0) - _setObjectDrawDistance: lis r12, objectMultiplier@ha lfs f0, objectMultiplier@l(r12) @@ -44,7 +45,12 @@ blr ; Tree billboard draw distance +const_treeDrawDistance: +.float $tree -; either one of these actually do stuff -;0x102E94D8 = .float $tree ; messes with the grass LODs? Might be expandable. -0x102BC438 = .float $tree \ No newline at end of file +0x033CB548 = lis r7, const_treeDrawDistance@ha +0x033CB550 = lfs f12, const_treeDrawDistance@l(r7) + + +; Grass blades draw distance +0x1030A774 = .float $grass \ No newline at end of file diff --git a/src/BreathOfTheWild/Mods/DrawDistance/rules.txt b/src/BreathOfTheWild/Mods/DrawDistance/rules.txt index 84575640..74191840 100644 --- a/src/BreathOfTheWild/Mods/DrawDistance/rules.txt +++ b/src/BreathOfTheWild/Mods/DrawDistance/rules.txt @@ -8,7 +8,8 @@ version = 6 [Default] $actor = 1.0 $object = 1.0 -$tree = 1.0 +$tree = 0.5 +$grass = 1000.0 $textureLODBias:int = 0 @@ -85,33 +86,67 @@ $object = 1.5 [Preset] name = Potato category = Trees (2D Billboards) -$tree = 1.5 +$tree = 0.5*1.5 [Preset] name = Low category = Trees (2D Billboards) -$tree = 1.25 +$tree = 0.5*1.25 [Preset] name = Medium (Default) category = Trees (2D Billboards) default = 1 -$tree = 1.0 +$tree = 0.5*1.0 [Preset] name = High category = Trees (2D Billboards) -$tree = 0.66 +$tree = 0.5*0.75 [Preset] name = Ultra category = Trees (2D Billboards) -$tree = 0.33 +$tree = 0.5*0.5 [Preset] name = Extreme category = Trees (2D Billboards) -$tree = 0.05 +$tree = 0.5*0.25 + + +# Grass Blades Draw Distance + +[Preset] +name = Potato +category = Grass Blades Density +$grass = 1000*2.0 + +[Preset] +name = Low +category = Grass Blades Density +$grass = 1000*1.5 + +[Preset] +name = Medium (Default) +category = Grass Blades Density +default = 1 +$grass = 1000*1.0 + +[Preset] +name = High +category = Grass Blades Density +$grass = 1000*0.9 + +[Preset] +name = Ultra (experimental) +category = Grass Blades Density +$grass = 1000*0.7 + +[Preset] +name = Extreme (experimental) +category = Grass Blades Density +$grass = 1000*0.5 # Texture LOD Bias diff --git a/src/BreathOfTheWild/Mods/RemoveFog/rules.txt b/src/BreathOfTheWild/Mods/RemoveFog/rules.txt index 994b758a..b1a743f5 100644 --- a/src/BreathOfTheWild/Mods/RemoveFog/rules.txt +++ b/src/BreathOfTheWild/Mods/RemoveFog/rules.txt @@ -2,7 +2,7 @@ titleIds = 00050000101C9300,00050000101C9400,00050000101C9500 name = Remove (Distant) Fog, Haze and Clouds path = "The Legend of Zelda: Breath of the Wild/Mods/Remove Distant Fog" -description = Allows you to remove or customize each type of fog in the game.|NPC fog will conflict with the remove cel-shading graphic packs.||Made by Skalfate." +description = Allows you to remove or customize each type of fog in the game.|NPC fog will conflict with the remove cel-shading graphic packs.||Made by Skalfate. version = 6 [Default]