Welcome, Guest.
Username: Password: Remember me

TOPIC: Use same shader for 2 "functions", make duplicate?

Use same shader for 2 "functions", make duplicate? 2 months 3 weeks ago #1

Im using a shader to give a certain look with certain settings. But i would also like to have/add the look of other settings that it can give.
Can i simply copy the shader and just rename it?
The administrator has disabled public write access.

Use same shader for 2 "functions", make duplicate? 2 months 3 weeks ago #2

Found a thread from 2015 that states that i can copy the shader file, rename it and then rename the parts of the code that has the same name. Ill try it out later.
The administrator has disabled public write access.

Use same shader for 2 "functions", make duplicate? 1 month 3 weeks ago #3

Hi,

I just started diving into all this stuff recently, but have found it to be quite cool.
Now I would also like a "lighter" (for playing) and "heavier" (for screenshotting) version of MXAO , since my GTX 980 isnt the best anymore and cant handle the desired (screenshot) quality all the time ^^

Did you have any success trying what the other thread stated? I also found only that thread while looking for a solution, but since its a totally different version of reshade than we have to today (working with 3.1.1 for FarCry 5 so far), it could be theres a much simpler solution now?!

Thanks and best regards :)
The administrator has disabled public write access.

Use same shader for 2 "functions", make duplicate? 1 month 3 weeks ago #4

Just create two different presets with the only difference being the MXAO settings.
The administrator has disabled public write access.
The following user(s) said Thank You: SurfNSlide

Use same shader for 2 "functions", make duplicate? 1 month 3 weeks ago #5

How to switch between those conveniently?
The administrator has disabled public write access.

Use same shader for 2 "functions", make duplicate? 1 month 2 weeks ago #6

SurfNSlide wrote:
How to switch between those conveniently?

you can make copies of the same shader (for different values and also lock it to a different keybind), for example for the MXAO shader search this line in the mxao.fx file
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Technique
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

technique MXAO

change "technique MXAO" to "technique MXAO2", and rename the shader file copied with a different name too.

otherwise use the presets, it's literally the first line under the main menu HOME, where you can drop down the menu to choose presets, add, and delete them.
Last Edit: 1 month 2 weeks ago by alex.
The administrator has disabled public write access.