Guest User

Untitled

a guest
May 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. /*======================================================================================
  2. "USER" ADJUSTABLE SETTINGS
  3. ======================================================================================*/
  4.  
  5. // TODO: Normalize values to be on a human range scale, whole numbers prefered, decimals usable for micro adjustments
  6. // These values should have min/max limit checks included in their functions, so that the end user doesn't get crazy results
  7.  
  8. /*------------------------------------------------------------------------------
  9. FILTER SELECTION
  10. ------------------------------------------------------------------------------*/
  11. // Comment to deactivate an effect.
  12. // Example: To disable the tonemap effect, use // in front of #define USE_TONEMAP
  13. #define USE_ANTI_ALIASING
  14. #define USE_PRE_SHARPEN
  15. //#define USE_BLOOM *NOT WORKING
  16. #define USE_TECHNICOLOR
  17. #define USE_TONEMAP
  18. //#define USE_SEPIA
  19. //#define USE_VIGNETTE
  20. #define USE_POST_SHARPEN
  21. //#define USE_FINAL_LIMITER
  22.  
  23.  
  24. /*------------------------------------------------------------------------------
  25. FXAA SHADER
  26. ------------------------------------------------------------------------------*/
  27. // Set values to calculate the amount of Anti Aliasing applied
  28. float fxaaQualitySubpix = 0.25; // Default: 0.75 Raise to increase amount of blur
  29. float fxaaQualityEdgeThreshold = 0.154; // Lower the value for more smoothing
  30. float fxaaQualityEdgeThresholdMin = 0.0358; // Lower the value for more smoothing
  31.  
  32.  
  33. /*------------------------------------------------------------------------------
  34. PRE_SHARPEN
  35. ------------------------------------------------------------------------------*/
  36. //For higher precision in the calculation of contour, requires slightly more processing power
  37. bool highQualitySharpen = 0; //0 = Disable | 1 = Enable
  38.  
  39. // Set values to calculate the amount of AA produced blur to consider for the sharpening pass
  40. #define Average 0.6
  41. #define CoefBlur 1.5
  42.  
  43. // Set values of the sharpening amount
  44. #define SharpenEdge 0.25
  45. #define Sharpen_val0 1.5
  46.  
  47.  
  48. /*------------------------------------------------------------------------------
  49. BLOOM
  50. ------------------------------------------------------------------------------*/
  51. // Number of samples per pixel taken for the Bloom effect. Don't set it to high! 4 = 25spp, 8 = 81spp, 16 = 289spp
  52. #define NUM_SAMPLES2 8 // Must be set with a value dividable by 2
  53. float BloomPreset = 3.5; // Disabled = 0 (Valid Preset Values = 1 to 9) Preset value 1 to 9 takes control over the next 3 settings.
  54. float BloomThreshold = 3.5; // The min. level at which the effect starts (Valid Values = 1 to 9, use decimals for finetuning)
  55. float BloomWidth = 3.5; // Sets the width of the effect (Valid Values = 1 to 9, use decimals for finetuning)
  56. float BloomPower = 3.5; // The power of the effect (Valid Values = 1 to 9, use decimals for finetuning)
  57.  
  58.  
  59. /*------------------------------------------------------------------------------
  60. TECHNICOLOR
  61. ------------------------------------------------------------------------------*/
  62. #define TechniAmount 0.01 // 1.00 = Max
  63. #define TechniPower 4.50 // lower values = whitening
  64.  
  65. // lower values = stronger channel
  66. #define redNegativeAmount 0.80 // 1.00 = Max
  67. #define greenNegativeAmount 1.00 // 1.00 = Max
  68. #define blueNegativeAmount 0.99 // 1.00 = Max
  69.  
  70.  
  71. /*------------------------------------------------------------------------------
  72. TONEMAP
  73. ------------------------------------------------------------------------------*/
  74. #define Gamma 0.9
  75. #define Exposure 0.00
  76. #define Saturation 1.75 // use negative values for less saturation.
  77. #define BlueShift 0.0 // Higher = more blue in image.
  78. #define Bleach 0.05 // Bleach bypass, higher = stronger effect
  79. #define Defog 0.1 // Strength of Lens Colors.
  80. #define FogColor float4(0.04, 0.295, 0.11, 3.1) //Lens-style color filters for Blue, Red, Yellow, White.
  81.  
  82.  
  83. /*------------------------------------------------------------------------------
  84. SEPIA
  85. ------------------------------------------------------------------------------*/
  86. #define Earthyellow // Color Tone, available tones can be seen in ColorTones.PNG (Do not use spaces in the name!)
  87. #define GreyPower 2 //(Valid Values = 1 to 9, use decimals for finetuning), defines how much of the grey color you wish to blend in
  88. #define SepiaPower 0 //(Valid Values = 1 to 9, use decimals for finetuning), defines how much of the color tone you wish to blend in
  89.  
  90.  
  91. /*------------------------------------------------------------------------------
  92. VIGNETTE
  93. ------------------------------------------------------------------------------*/
  94. // Vignette effect, process by which there is loss in clarity towards the corners and sides of the image, like a picture frame
  95. #define VignetteCenter float2(0.500, 0.500) // Center of screen for effect.
  96. #define VignetteRadius 0.65 // lower values = stronger radial effect from center
  97. #define VignetteAmount -0.65 // Strength of black. -2.00 = Max Black, 1.00 = Max White.
  98.  
  99.  
  100. /*------------------------------------------------------------------------------
  101. POST_SHARPEN
  102. ------------------------------------------------------------------------------*/
  103. // Controls additional sharpening applied after previous processing. Strength should be max 0.25!
  104. float Sharpen = 0.025;
  105.  
  106.  
  107. /*------------------------------------------------------------------------------
  108. FINAL_LIMITER
  109. ------------------------------------------------------------------------------*/
  110. // Controls the strenght of the limiter. 1.000 for default setting
  111. int LimiterStrenght = 1.000;
Add Comment
Please, Sign In to add comment