Reshade

From Linux Gaming
Revision as of 23:59, 24 January 2022 by Aragorn (talk | contribs)
Jump to navigation Jump to search

Reshade let's you apply extra shaders. While it's theoretically possible to do this with vkBasalt, it's not yet fully working. You might also want to use some mods that are written for reshade.

How to install

Automatic

You can use this script. Note, that executing external scripts is a security risk. You should always read and understand the content of the script before executing it.

Manual[1]

  • Get the architecture of your application. If you don't know it, run file /path/to/your/game.exe. The output will either contain x86-64 (64 bit) or 80386 (32 bit).
  • Download:
  • Download the latest version of Reshade: https://reshade.me/ (alternatively download this older version, it should work: https://reshade.me/downloads/ReShade_Setup_4.9.1.exe)
  • Move both executables to some folder, and extract them with 7zip:
    • 7z e Firefox\ Setup\ 62.0.3.exe
    • 7z e ReShade_Setup_x.y.z.exe (modify x y and z according to the version you downloaded, for example 7z e ReShade_Setup_4.9.1.exe for Reshade version 4.9.1)
  • From the extraced executables, copy following dlls to the folder your game executable is in:
    • d3dcompiler.dll (coming from Firefox)
    • Reshade.dll (coming from Reshade). Rename it to
      • d3d9.dll if your game uses Directx9 (this is more likely for older games)
      • dxgi.dll if your game uses Directx11 (this is more likely for newer games)
  • Set dll overrides in winecfg:
    • Open Lutris, click your game, on the bottom, click the up-arrow right next to the wine bottle icon, click Wine configuration, click Libraries, insert the name of the dll (without the .dll) in the text box under New override for library:
      • d3dcompiler_47
      • select it in the list, click Edit and select native, then builtin
      • Depending on whether your game uses DX9 or DX11:
        • d3d9 for DX9
        • dxgi for DX11
      • select it in the list, click Edit and select native (Windows)
  • Get the shaders and textures: git clone https://github.com/crosire/reshade-shaders.git and copy the folders Shaders and Textures into the folder where your game executable is in.
  • Run your application
  • Open Reshade (with by pressing home or Pos1)
  • Open settings tab, and add the path ./Shaders for shaders and ./Textures for textures.