Skip to content
Dominik Tugend edited this page Oct 16, 2024 · 15 revisions

Welcome to the ReShade_advancedfx wiki!

About

ReShade_advancedfx is an addon for ReShade to connect HLAE to ReShade (CS2 and CS:GO only). See the table of contents for the CS2 and CS:GO sections respectively.

Counter-Strike 2

Advantages

  • Better depth buffer and detection
  • Effects are applied before the HUD would be drawn

Known problems

  • MSAA must be disabled in video settings
  • When changing some video settings ReShade might deactivate, switching from e.g. MSAA 2x to no MSAA will revive it usually
  • The skybox will disappear from depth stencil if smoke is in view. After Oct 2 "Armory" patch, smokes will disappear from depthStencil if too far with default cvars. Use mirv_cvar_unhide_all; smoke_volume_lod_ratio_change 0 to have them in depth stencil from afar.

Requirements

This guide currently assumes you are already familiar with HLAE and ReShade a bit.

Usage

Initial installation and setup

Extraction / Installation

  • Create a folder reshade on your desktop and move ReShade_Setup_6.3.1_Addon.exe inside.
  • Extract ReShade_advancedfx.addon from x64 folder in ReShade_advancedfx.zip into reshade folder on your desktop
  • Copy the injector.exe from the x64 sub-folder of the HLAE installation into the ReShade folder.

Start the ReShade_Setup_6.3.1_Addon.exe in the reshade folder by double-clicking:

  • Confirm the first pop-up with OK.
  • Use the browser button to select the injector.exe in the reshade folder and then click Next
  • Select DirectX 11 and then click Next
  • Select the Shader packs you want (we used the default + Legacy) and click Next
  • Confirm the Selection of the Shaders with Next
  • Select no addons to install and click Next
  • Click Finish

HLAE Settings

  • Open HLAE's Custom Loader.
  • Set path to your cs2.exe as usual.
  • You can use e.g. these command line options -steam -insecure +sv_lan 1 -console -novid -afxDisableSteamStorage -sw -w 1280 -h 720
  • Add AfxHookSource2.dll of HLAE x64 sub-folder into the DLLs to inject as first DLL.
  • Add dxgi.dll from the reshade folder as second DLL to inject
  • Optional: set your mmcfg folder for CS2/HLAE to be used, by entering the path to the folder into the bottom box (environment variables) as follows: USRLOCALCSGO=C:\path\to\your\mmcfg-folder
  • Click Launch

Game Settings

  • Disable MSAA in video settings!
  • Disable Fidelity FX Super Resolution in video settings! (Set to Highest Quality to disable.)

ReShade Settings

  • Open Reshade (HOME-key)
  • Navigate to Add-ons tab
  • Disable Generic Depth default addon!
  • Make sure ReShade_advancedfx addon is enabled.
  • Navigate to Home tab
  • Click Skip Tutorial button if present
  • Click Edit global preprocessor definitions button
  • Add the following entries there (name on left box, value on right box):
    • RESHADE_DEPTH_INPUT_IS_REVERSED 0
    • RESHADE_DEPTH_LINEARIZATION_FAR_PLANE 255
    • Click outside to close and save

Every-Day Usage

  • Launch CS2 again from the HLAE custom loader
  • Play a demo
  • ReShade is enabled by default when used as above, you can disable it with mirv_reshade enabled 0 and enable it again with mirv_reshade enabled 1.

Counter-Strike: Global Offensive

Advantages

  • Better depth buffer and detection
  • Effects are applied before the HUD would be drawn
  • Allows to limit ReShade to a specific stream and recording that stream as usual with mirv_streams

Known problems

  • MSAA must be disabled in video settings
  • Depth buffer is itself not perfect, so e.g. smokes are problematic

Requirements

This guide currently assumes you are already familiar with HLAE and ReShade a bit.

Usage

Initial installation and setup

Extraction / Installation

  • Create a folder reshade on your desktop and move ReShade_Setup_6.3.1_Addon.exe inside.
  • Extract ReShade_advancedfx.addon from x86 folder in ReShade_advancedfx.zip into reshade folder on your desktop
  • Copy the injector.exe from the main HLAE.exe folder of the HLAE installation into the ReShade folder.

Start the ReShade_Setup_6.3.1_Addon.exe in the reshade folder by double-clicking:

  • Confirm the first pop-up with OK.
  • Use the browser button to select the injector.exe in the reshade folder and then click Next
  • Select DirectX 9 and then click Next
  • Select the Shader packs you want (we used the default + Legacy) and click Next
  • Confirm the Selection of the Shaders with Next
  • Select no addons to install and click Next
  • Click Finish

HLAE Settings

  • Open HLAE's Custom Loader.
  • Set path to your csgo.exe as usual.
  • You can use e.g. these command line options -steam -insecure +sv_lan 1 -window -console -novid
  • Add AfxHookSource.dll of HLAE into the DLLs to inject as first DLL.
  • Add d3d9.dll from the reshade folder as second DLL to inject
  • Optional: set your mmcfg folder for CS:GO/HLAE to be used, by entering the path to the folder into the bottom box (environment variables) as follows: USRLOCALCSGO=C:\path\to\your\mmcfg-folder
  • Click Launch

Game Settings

  • Disable MSAA in video settings!

ReShade Settings

  • Open Reshade (HOME-key)
  • Navigate to Add-ons tab
  • Disable Generic Depth default addon!
  • Make sure ReShade_advancedfx addon is enabled.
  • Navigate to Home tab
  • Click Skip Tutorial button if present
  • Click Edit global preprocessor definitions button
  • Add the following entries there (name on left box, value on right box):
    • RESHADE_DEPTH_INPUT_IS_REVERSED 0
    • RESHADE_DEPTH_LINEARIZATION_FAR_PLANE 255
    • Click outside to close and save

Every-Day Usage

Enter this in console

mirv_streams add baseFx myShade
mirv_streams edit myShade reshade enabled 1
mirv_streams preview myShade

And start configuring the ReShade effects as you need for your myShade stream.

Donations

If you want to donate, donate to the original ReShade author, for more information see https://reshade.me/