mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-23 08:11:29 +11:00
dd9994482c
- Expose all the configuration settings used by the quality presets to allow fine-tuning of edge detection. - Changed default edge detection technique from luma to color since in my tests that always yields better results. - Increased quality to ultra in default preset. - Deleted the duplication of the fragment shader part of the lib, as I figured out how to include the lib twice with different defines for the vertex and fragment passes. That is necessary probably because discard cannot be used in vertex shaders in RetroArch, indicated in a comment in the lib as a possible restriction in some compilers. - Include license headers to make clear that all my contributions are released on the public domain under the terms of the Unlicense. Anyone can do whatever they want with this.
43 lines
996 B
Plaintext
43 lines
996 B
Plaintext
shaders = 5
|
|
|
|
shader0 = ../stock.slang
|
|
filter_linear0 = false
|
|
scale_type0 = source
|
|
scale0 = 1.0
|
|
alias0 = SMAA_Input
|
|
|
|
shader1 = shaders/smaa/smaa-pass0.slang
|
|
filter_linear1 = true
|
|
scale_type1 = source
|
|
scale1 = 1.0
|
|
|
|
shader2 = shaders/smaa/smaa-pass1.slang
|
|
filter_linear2 = true
|
|
scale_type2 = source
|
|
scale2 = 1.0
|
|
|
|
shader3 = shaders/smaa/smaa-pass2.slang
|
|
filter_linear3 = true
|
|
scale_type3 = source
|
|
scale3 = 1.0
|
|
|
|
textures = "areaTex;searchTex"
|
|
areaTex = shaders/smaa/AreaTex.png
|
|
searchTex = shaders/smaa/SearchTex.png
|
|
|
|
shader4 = ../sharpen/shaders/fast-sharpen.slang
|
|
filter_linear4 = false
|
|
scale_type4 = source
|
|
scale4 = 1.0
|
|
|
|
parameters = "SMAA_EDT;SMAA_THRESHOLD;SMAA_MAX_SEARCH_STEPS;SMAA_MAX_SEARCH_STEPS_DIAG;SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR;SMAA_CORNER_ROUNDING;SHARPEN;CONTR;DETAILS"
|
|
SMAA_EDT = 1.0
|
|
SMAA_THRESHOLD = 0.05
|
|
SMAA_MAX_SEARCH_STEPS = 40
|
|
SMAA_MAX_SEARCH_STEPS_DIAG = 20
|
|
SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR = 2.5
|
|
SMAA_CORNER_ROUNDING = 50.0
|
|
SHARPEN = 0.9
|
|
CONTR = 0.0
|
|
DETAILS = 0.2
|