Add mixed-res preset hooks

- These prepend and append preset hooks can be used with almost any crt shaders. Instructions on how to use in readme.md.
- Enable downsampling with almost any shader.
This commit is contained in:
Hyllian 2024-06-03 18:35:48 -03:00
parent 1265cf159d
commit 44de01372b
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Mixed-Res hooks
These two presets allow almost any crt shader to be used with a game emulated at 4x internal resolution.
How to use:
1. Load a crt preset;
2. Disable any curvature feature;
3. Prepend "mixed-res-4x-prepend.slangp" preset;
4. Append "mixed-res-4x-append.slangp" preset;
5. Change any param you desire and save your preset for future usage.
Obs: curvature or any other warp features won't work with this method.

View File

@ -0,0 +1,9 @@
shaders = "1"
shader0 = "../../shaders/mixed-res/output.slang"
filter_linear0 = false
wrap_mode0 = "clamp_to_border"
scale_type0 = "source"
scale0 = "1.000000"
B_HL = "0.0"

View File

@ -0,0 +1,59 @@
shaders = "7"
feedback_pass = "0"
shader0 = "../../shaders/mixed-res/multiLUT-modified.slang"
scale_type0 = "source"
scale0 = "1.000000"
SamplerLUT1 = "../../../reshade/shaders/LUT/grade-composite.png"
SamplerLUT1_linear = true
SamplerLUT2 = "../../../reshade/shaders/LUT/grade-rgb.png"
SamplerLUT2_linear = true
shader1 = "../../shaders/mixed-res/coder.slang"
scale_type1 = "source"
scale1 = "1.000000"
shader2 = "../../shaders/mixed-res/hires-tagger.slang"
filter_linear2 = "true"
alias2 = "HiresSource"
scale_type2 = "source"
scale2 = "1.000000"
shader3 = "../../shaders/mixed-res/blur-gauss-h.slang"
filter_linear3 = true
scale_type3 = source
scale3 = 0.25
shader4 = "../../shaders/mixed-res/blur-gauss-v.slang"
filter_linear4 = true
alias4 = "BlurSource"
scale_type4 = source
scale4 = 1.0
shader5 = "../../../denoisers/shaders/bilateral-horizontal.slang"
filter_linear5 = false
wrap_mode5 = "clamp_to_border"
scale_type5 = source
scale5 = 1.0
shader6 = "../../../denoisers/shaders/bilateral-vertical.slang"
filter_linear6 = false
wrap_mode6 = "clamp_to_border"
scale_type6 = source
scale6 = 1.0
LUT_selector_param = "2.000000"
IR_SCALE = "4.0"
B_TRESH = "0.30"
B_HL = "0.0"
FRANGE = "2.000000"
FBSMOOTH = "0.150000"
FSIGMA = "1.000000"
textures = "SamplerLUT1;SamplerLUT2"