Skip to content

Commit

Permalink
[BotW] Fix tree draw distance, add grass density/draw distance option
Browse files Browse the repository at this point in the history
Also fix a typo in the Remove Fog description.
  • Loading branch information
Crementif committed Jan 19, 2022
1 parent a84bc72 commit 30b88f7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 12 deletions.
14 changes: 10 additions & 4 deletions src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ moduleMatches = 0x6267BFD0

.origin = codecave

; Actor draw distance
actorMultiplier:
.float $actor

Expand All @@ -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)
Expand All @@ -44,7 +45,12 @@ blr


; Tree billboard draw distance
const_treeDrawDistance:
.float $tree

0x033CB548 = lis r7, const_treeDrawDistance@ha
0x033CB550 = lfs f12, const_treeDrawDistance@l(r7)


; either one of these actually do stuff
;0x102E94D8 = .float $tree ; messes with the grass LODs? Might be expandable.
0x102BC438 = .float $tree
; Grass blades draw distance
0x1030A774 = .float $grass
49 changes: 42 additions & 7 deletions src/BreathOfTheWild/Mods/DrawDistance/rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/BreathOfTheWild/Mods/RemoveFog/rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 30b88f7

Please sign in to comment.