vkBasalt icon indicating copy to clipboard operation
vkBasalt copied to clipboard

[TIP] custom .fx file per game

Open wildtruc opened this issue 3 months ago • 0 comments

Because vkBasalt has no possibility to create customs sets per game, you can create a custom .fx file dedicated to this game, example (BDO here): You need to customize Denoise.fx for your game/software. In ~/.local/share/reshade create a customs folder: mkdir -p ~/.local/share/reshade/customs

Make a copy of Denoise.fx into customs folder and rename it as you wish: cp -f ~/.local/share/reshade/Denoise.fx ~/.local/share/reshade/customs/DenoiseBDO.fx

Edit the new file as you wish (will need probably many tests at least you already know what you need).

The editable fx code section are like this one:

uniform float LerpCoefficeint < __UNIFORM_SLIDER_FLOAT1
	ui_min = 0.0; ui_max = 1.00;
	ui_label = "Lerp Coefficient";
	ui_tooltip = "Amount of blending between the original and the processed image.";
// > = 0.8;  # < default
> = 0.5;     # < custom

When done, go to ~/.config/vkBasalt. Make a copy of vkBasalt.conf to bdo.conf. cp -f ~/.config/vkBasalt/vkBasalt.conf ~/.config/vkBasalt/bdo.conf

Edit the new file and set the DenoiseBDO.fx in the list of fx files (GOverlay formated conf files):

Denoise = /home/user/.local/share/reshade/Shaders/Denoise.fx
DenoiseBDO = /home/[user]/.local/share/reshade/Shaders/customs/DenoiseBDO.fx

Then in the same conf file, call the custom Denoise.fx files in the effect chain: effects = SMAA:Colourfulness:DenoiseBDO:FakeHDR:cas

The last thing is to symlink bdo.conf file to vkBasalt.conf where the game executable is located. ln -sf ~/.config/vkBasalt/bdo.conf ~/.[SteamApps]/[Games]/BlackDesert/bin64/vkBasalt.conf

Done and enjoy.

Note : remind you to only edit in custom file the > = 0.5; lines, nothing else which could be sensitive and that tests will need many game launch to get the fine result.

wildtruc avatar Mar 21 '24 15:03 wildtruc