Guest User

Untitled

a guest
Apr 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 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_PRE_SHARPEN
  14. #define USE_BLOOM
  15. #define USE_TECHNICOLOR
  16. #define USE_TONEMAP
  17. //#define USE_SEPIA
  18. //#define USE_VIGNETTE
  19. #define USE_POST_SHARPEN
  20. //#define USE_FINAL_LIMITER
  21.  
  22. /*------------------------------------------------------------------------------
  23. PRE_SHARPEN
  24. ------------------------------------------------------------------------------*/
  25. //For higher precision in the calculation of contour, requires slightly more processing power
  26. bool highQualitySharpen = 0; //0 = Disable | 1 = Enable
  27.  
  28. // Set values to calculate the amount of AA produced blur to consider for the sharpening pass
  29. #define Average 0.8
  30. #define CoefBlur 2
  31.  
  32. // Set values of the sharpening amount
  33. #define SharpenEdge 0.15
  34. #define Sharpen_val0 1.25
  35.  
  36.  
  37. /*------------------------------------------------------------------------------
  38. BLOOM
  39. ------------------------------------------------------------------------------*/
  40. // Number of samples per pixel taken for the Bloom effect. Don't set it to high! 4 = 25spp, 8 = 81spp, 16 = 289spp
  41. #define NUM_SAMPLES2 4 // Must be set with a value dividable by 2
  42. float BloomPreset = 5; // Disabled = 0 (Valid Preset Values = 1 to 9) Preset value 1 to 9 takes control over the next 3 settings.
  43. float BloomThreshold = 1.5; // The min. level at which the effect starts (Valid Values = 1 to 9, use decimals for finetuning)
  44. float BloomWidth = 1.85; // Sets the width of the effect (Valid Values = 1 to 9, use decimals for finetuning)
  45. float BloomPower = 1.75; // The power of the effect (Valid Values = 1 to 9, use decimals for finetuning)
  46.  
  47.  
  48. /*------------------------------------------------------------------------------
  49. TECHNICOLOR
  50. ------------------------------------------------------------------------------*/
  51. #define TechniAmount 0.10 // 1.00 = Max
  52. #define TechniPower 4.0 // lower values = whitening
  53.  
  54. // lower values = stronger channel
  55. #define redNegativeAmount 0.9 // 1.00 = Max
  56. #define greenNegativeAmount 1.0 // 1.00 = Max
  57. #define blueNegativeAmount 1.0 // 1.00 = Max
  58.  
  59.  
  60. /*------------------------------------------------------------------------------
  61. TONEMAP
  62. ------------------------------------------------------------------------------*/
  63. #define Gamma 1.10
  64. #define Exposure -0.10
  65. #define Saturation 1.1 // use negative values for less saturation.
  66. #define BlueShift 0.25 // Higher = more blue in image.
  67. #define Bleach 0.00 // Bleach bypass, higher = stronger effect
  68. #define Defog 0.000 // Strength of Lens Colors.
  69. #define FogColor float4(0.0, 0.0, 0.0, 0.0) //Lens-style color filters for Blue, Red, Yellow, White.
  70.  
  71.  
  72. /*------------------------------------------------------------------------------
  73. SEPIA
  74. ------------------------------------------------------------------------------*/
  75. #define Earthyellow // Color Tone, available tones can be seen in ColorTones.PNG (Do not use spaces in the name!)
  76. #define SepiaPower 0.45 // 1.00 = Max
  77.  
  78.  
  79. /*------------------------------------------------------------------------------
  80. VIGNETTE
  81. ------------------------------------------------------------------------------*/
  82. // Vignette effect, process by which there is loss in clarity towards the corners and sides of the image, like a picture frame
  83. #define VignetteCenter float2(0.500, 0.500) // Center of screen for effect.
  84. #define VignetteRadius 1.00 // lower values = stronger radial effect from center
  85. #define VignetteAmount -0.70 // Strength of black. -2.00 = Max Black, 1.00 = Max White.
  86.  
  87.  
  88. /*------------------------------------------------------------------------------
  89. POST_SHARPEN
  90. ------------------------------------------------------------------------------*/
  91. // Controls additional sharpening applied after previous processing. Strength should be max 0.25!
  92. float Sharpen = 0.045;
  93.  
  94.  
  95. /*------------------------------------------------------------------------------
  96. FINAL_LIMITER
  97. ------------------------------------------------------------------------------*/
  98. // Controls the strenght of the limiter. 1.000 for default setting
  99. int LimiterStrenght = 1.000;
Add Comment
Please, Sign In to add comment