≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 Prerequisites & recommendations
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

This mod without other mods applied works with the original gameconfig.xml and without any heap adjustment.
However, if you are using multiple mods it might be the case that at some point you need to adapt the gameconfig.xml and/or the heap (that is a general statement and is not specific to this mod).
If you are unsure just give it a try without changing the gameconfig.xml and the heap. In case you then experience crashes please install these add-ons as well:
• https://www.gta5-mods.com/misc/gameconfig-xml-dilapidated
• https://www.gta5-mods.com/tools/heapadjuster


≡≡≡≡≡≡≡≡≡
 Credits
≡≡≡≡≡≡≡≡≡

Despite my own tools/scripts (https://github.com/Larcius/gta5-modding-utils) the following tools were involved:
• OpenIV (https://openiv.com): importing files from openformats to binary code
• CodeWalker (https://www.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map): editing entities, exporting and importing shader
• HLSLDecompiler (https://github.com/etnlGD/HLSLDecompiler): decompiling shader (from DXBC byte code to HLSL source code)
• FXC (https://learn.microsoft.com/en-us/windows/win32/direct3dtools/fxc): compiling shader (from HLSL source code to DXBC byte code)


≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 Installation via OIV
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

Simply extract the file "Vegetation reflection v*.oiv" anywhere you want and use OpenIV -> Tools -> Package Installer to install the mod.
By doing so the reflection models and maps as well as an adapted shader are installed.


≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 Uninstallation via OIV
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

Simply extract the file "Uninstall vegetation reflection.oiv" anywhere you want and use OpenIV -> Tools -> Package Installer to uninstall the mod.
Please be sure to select the same location (mods or game folder) you did on installation.
By doing so the reflection models and maps but not the adapted shader are uninstalled.
It is not necessary to reset the adapted shader. If you want to uninstall it anyway please see section Manual uninstallation -> Shader.


≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 Manual installation
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

----------------------------
 Reflection models and maps
 ---------------------------

• Create a new folder "vegetation_reflection" in Grand Theft Auto V\mods\update\x64\dlcpacks
• Extract the file "Vegetation reflection v*.oiv" and open it with a ZIP program (like 7zip, WinZIP, WinRAR, ...)
• Extract content\dlc\dlc.rpf to Grand Theft Auto V\mods\update\x64\dlcpacks\vegetation_reflection
  (so finally there must be Grand Theft Auto V\mods\update\x64\dlcpacks\vegetation_reflection\dlc.rpf)
• Use OpenIV to edit Grand Theft Auto V\mods\update\update.rpf\common\data\dlclist.xml
• Add new line
  <Item>dlcpacks:/vegetation_reflection/</Item>
  before line
  </Paths>

--------
 Shader
--------

To properly render the dedicated reflection models an adapted shader is required.

• Extract the file "Vegetation reflection v*.oiv" and open it with a ZIP program (like 7zip, WinZIP, WinRAR, ...)
• Extract the file default.fxc under content\shader and copy it (using OpenIV) to Grand Theft Auto V\mods\update\update2.rpf\common\shaders\win32_40_final
  Make a backup of that file first in case you already had an adapted version of that shader.


≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 Manual uninstallation
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

----------------------------
 Reflection models and maps
 ---------------------------

Revert the steps from section "Manual installation":
• Use OpenIV to edit Grand Theft Auto V\mods\update\update.rpf\common\data\dlclist.xml
• Remove any line like
  <Item>dlcpacks:/vegetation_reflection/</Item>
• Go to Grand Theft Auto V\mods\update\x64\dlcpacks and remove the folder vegetation_reflection

--------
 Shader
--------

If you are using one of my other mods you need to keep the adapted default.fxc shader.
The original shader can be found at Grand Theft Auto V\update\update2.rpf\common\shaders\win32_40_final\default.fxc
Place that file (or your own backup of default.fxc) in Grand Theft Auto V\mods\update\update2.rpf\common\shaders\win32_40_final