Difference between revisions of "Reshade"

From Linux Gaming
Jump to navigation Jump to search
(Minor grammar fix.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
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.
Reshade lets 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==
==How to install==
Line 9: Line 9:
{{Needs work|Problem=dll name for dx12 is missing}}
{{Needs work|Problem=dll name for dx12 is missing}}
*Get the architecture of your application. If you don't know it, run <code>file /path/to/your/game.exe</code>. The output will either contain '''x86-64''' (64 bit) or '''80386''' (32 bit).
*Get the architecture of your application. If you don't know it, run <code>file /path/to/your/game.exe</code>. The output will either contain '''x86-64''' (64 bit) or '''80386''' (32 bit).
*Download:
*Install d3dcompiler_47 (for example with [[Installing dlls#With winetricks or protontricks|winetricks or protontricks]]).
**If your game is 32 bit: https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win32/ach/Firefox%20Setup%2062.0.3.exe
**If your game is 64 bit: https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win64/ach/Firefox%20Setup%2062.0.3.exe
*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)
*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:
*Move it to some folder, and extract with 7zip:
**<code>7z e Firefox\ Setup\ 62.0.3.exe</code>
**<code>7z e ReShade_Setup_x.y.z.exe</code> (modify x y and z according to the version you downloaded, for example <code>7z e ReShade_Setup_4.9.1.exe</code> for Reshade version 4.9.1)
**<code>7z e ReShade_Setup_x.y.z.exe</code> (modify x y and z according to the version you downloaded, for example <code>7z e ReShade_Setup_4.9.1.exe</code> for Reshade version 4.9.1)
*From the extracted executables, copy following dlls to the folder your game executable is in:
**Take <code>ReShade64.dll</code> or <code>ReShade32.dll</code> based on whether your game is 32 or 64 bit, and rename it to
**<code>d3dcompiler.dll</code> (coming from Firefox)
**<code>Reshade.dll</code> (coming from Reshade). Rename it to
***<code>d3d9.dll</code> if your game uses Directx9 (this is more likely for older games)
***<code>d3d9.dll</code> if your game uses Directx9 (this is more likely for older games)
***<code>dxgi.dll</code> if your game uses Directx11 (this is more likely for newer games)
***<code>dxgi.dll</code> if your game uses Directx11 (this is more likely for newer games)
*Set [[Modding#DLL overrides|dll overrides]] in winecfg:
*Set [[Modding#DLL overrides|dll override]] in winecfg, for example with Lutris:
**Open Lutris, click your game, on the bottom, click the up-arrow right next to the wine bottle icon, click <code>Wine configuration</code>, click <code>Libraries</code>, insert the name of the dll (without the .dll) in the text box under <code>New override for library</code>:
**Open Lutris, click your game, on the bottom, click the up-arrow right next to the wine bottle icon, click <code>Wine configuration</code>, click <code>Libraries</code>, insert the name of the dll (without the .dll) in the text box under <code>New override for library</code>:
***<code>d3dcompiler_47</code>
***select it in the list, click <code>Edit</code> and select <code>native, then builtin</code>
***Depending on whether your game uses DX9 or DX11:
***Depending on whether your game uses DX9 or DX11:
****<code>d3d9</code> for DX9
****<code>d3d9</code> for DX9

Latest revision as of 20:09, 13 November 2022

Reshade lets 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]

This page needs work, for the following reason(s): dll name for dx12 is missing.
  • 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).
  • Install d3dcompiler_47 (for example with winetricks or protontricks).
  • 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 it to some folder, and extract with 7zip:
    • 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)
    • Take ReShade64.dll or ReShade32.dll based on whether your game is 32 or 64 bit, and 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 override in winecfg, for example with Lutris:
    • 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:
      • 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 (by pressing home or Pos1)
  • Open settings tab, and add the path ./Shaders for shaders and ./Textures for textures.

References and notes