Skip to content

Instantly share code, notes, and snippets.

@Daodan317081
Daodan317081 / UpdateReShade.bat
Created November 21, 2018 23:14
A script to automate the update of ReShade.
:: This is a script for updating ReShade
::
:: Extract the ReShade dlls from the installer and place them in the same folder as this script.
:: Add the games as shown in the example below.
:: Run the script.
@echo off
SETLOCAL
SET d3d9=d3d9.dll
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// This is not the original CinematicDOF but a modified version which uses a custom depth input.
//
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Cinematic Depth of Field shader, using scatter-as-gather for ReShade 3.x.
// By Frans Bouma, aka Otis / Infuse Project (Otis_Inf)
#include "ReShade.fxh"
#ifndef REMOVE_TINT_MINMAX_STEP
#define REMOVE_TINT_MINMAX_STEP BUFFER_WIDTH/64
#endif
uniform float fUISpeed <
ui_type = "drag";
ui_label = "Speed";
ui_min = 0.0; ui_max = 1.0;