Mount&Blade_Warband_TFL.txt 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*-----------------------------------------------------------.
  2. / Description /
  3. '------------------------------------------------------------/
  4. Game: Mount & Blade Warband
  5. SweetFX version: 1.2 (updated for 1.3 by CeeJay.dk)
  6. Author: TFL Replica
  7. Description: "Breathes some life into game, better contrast, more natural colors"
  8. Showcase: http://www.overclock.net/t/1296721/how-to-anti-aliasing-injection-methods/250#post_18387567
  9. /*-----------------------------------------------------------.
  10. / Choose effects /
  11. '-----------------------------------------------------------*/
  12. // Set to 1 for ON or 0 for OFF
  13. #define USE_SMAA_ANTIALIASING 1
  14. #define USE_LUMASHARPEN 1 //Also sharpens the antialiased edges which makes them less smooth - I'm working on fixing that.
  15. #define USE_BLOOM 0 // Bloom makes bright lights bleed their light into their surroundings (relatively high performance cost)
  16. #define USE_HDR 1 // Not actual HDR - It just tries to mimic an HDR look (relatively high performance cost)
  17. #define USE_TECHNICOLOR 0 // Attempts to mimic the look of an old movie using the Technicolor three-strip color process (Techicolor Process 4)
  18. #define USE_TONEMAP 0
  19. #define USE_VIBRANCE 1 //Intelligently saturates (or desaturates if you use negative values) the pixels depending on their original saturation.
  20. #define USE_SEPIA 1
  21. #define USE_VIGNETTE 0 //Darkens the edges of the image to make it more look like it was shot with a camera lens. May cause banding artifacts.
  22. #define USE_DITHER 0 //Applies dithering to simulate more colors than your monitor can display. This lessens banding artifacts (mostly caused by vignette)
  23. #define USE_DPX 1 //Unfinished - Should make the image look like it's been converted to DXP Cineon - basically it's another movie-like look similar to technicolor
  24. //I think the shader itself works, but the default settings need a lot of work. Maybe you can find some good settings?
  25. /*-----------------------------------------------------------.
  26. / SMAA Anti-aliasing settings /
  27. '-----------------------------------------------------------*/
  28. #define SMAA_THRESHOLD 0.05 // (0.08-0.20) Edge detection threshold
  29. #define SMAA_MAX_SEARCH_STEPS 64 // [0-98] Determines the radius SMAA will search for aliased edges
  30. #define SMAA_MAX_SEARCH_STEPS_DIAG 16 // [0-16] Determines the radius SMAA will search for diagonal aliased edges
  31. #define SMAA_CORNER_ROUNDING 0 // [0-100] Determines the percent of antialiasing to apply to corners.
  32. // -- Advanced SMAA settings --
  33. #define COLOR_EDGE_DETECTION 1 // 1 Enables color edge detection (slower but more acurate) - 0 uses luma edge detection (faster)
  34. #define SMAA_DIRECTX9_LINEAR_BLEND 0 // Using DX9 HARDWARE? (software version doesn't matter) if so this needs to be 1 - If not, leave it at 0.
  35. /*-----------------------------------------------------------.
  36. / LumaSharpen settings /
  37. '-----------------------------------------------------------*/
  38. // -- Sharpening --
  39. #define sharp_strength 0.5 // (0.2-2.0)Strength of the sharpening
  40. #define sharp_clamp 0.030 // [0.0-1.0]Limits maximum amount of sharpening a pixel recieves - Default is 0.035
  41. // -- Advanced sharpening settings --
  42. #define pattern 2 // Choose a sample pattern [ 1, 2, 3 or 4 ] - 1 = Fast, 2 = Normal, 3 = Wider, 4 = Pyramid shaped.
  43. #define offset_bias 1.0 // [0.0-6.0](1.0) Offset bias adjusts the radius of the sampling pattern.
  44. // I designed the pattern for offset_bias 1.0, but feel free to experiment.
  45. // -- Debug settings --
  46. #define splitscreen 0 // Enables the before-and-after splitscreen comparison mode. Left side is before.
  47. #define show_sharpen 0 // Visualize the strength of the sharpen (multiplied by 4 to see it better)
  48. /*-----------------------------------------------------------.
  49. / Bloom settings /
  50. '-----------------------------------------------------------*/
  51. #define BloomThreshold 20.25
  52. #define BloomPower 1.446
  53. #define BloomWidth 0.0142
  54. /*-----------------------------------------------------------.
  55. / HDR settings /
  56. '-----------------------------------------------------------*/
  57. #define HDRPower 1.20 //Strangely lowering this makes the image brighter
  58. #define radius2 0.80 //Raising this seems to make the effect stronger and also brighter
  59. /*-----------------------------------------------------------.
  60. / TECHNICOLOR settings /
  61. '-----------------------------------------------------------*/
  62. #define TechniAmount 0.11
  63. #define TechniPower 2.8
  64. #define redNegativeAmount 0.88
  65. #define greenNegativeAmount 0.88
  66. #define blueNegativeAmount 0.88
  67. /*-----------------------------------------------------------.
  68. / Tonemap settings /
  69. '-----------------------------------------------------------*/
  70. #define Gamma 1.0
  71. #define Exposure 0.0
  72. #define Saturation 0.0
  73. #define Bleach 0.0
  74. #define Defog 0.010 //How much of the color tint to remove
  75. #define FogColor float3(0.00, 0.00, 2.55) //what color to remove - default is blue
  76. /*-----------------------------------------------------------.
  77. / Vibrance settings /
  78. '-----------------------------------------------------------*/
  79. #define Vibrance -0.1 //Intelligently saturates (or desaturates if you use negative values) the pixels depending on their original saturation.
  80. /*-----------------------------------------------------------.
  81. / Sepia settings /
  82. '-----------------------------------------------------------*/
  83. #define ColorTone float3(1.40, 1.20, 0.90)
  84. #define SepiaPower 0.20
  85. #define GreyPower 0.07
  86. /*-----------------------------------------------------------.
  87. / Vignette settings /
  88. '-----------------------------------------------------------*/
  89. #define VignetteRadius 1.00 // lower values = stronger radial effect from center
  90. #define VignetteAmount -1.00 // Strength of black. -2.00 = Max Black, 1.00 = Max White.
  91. #define VignetteSlope 8 // How far away from the center the change should start to really grow strong (odd numbers cause a larger fps drop than even numbers)
  92. #define VignetteCenter float2(0.500, 0.500) // Center of effect.
  93. /*-----------------------------------------------------------.
  94. / Dither settings /
  95. '-----------------------------------------------------------*/
  96. //No settings yet, beyond switching it on or off in the top section.
  97. //Note that checkerboard pattern used by Dither, makes an image harder to compress.
  98. //This can make your screenshots and videos take up more space.
  99. /////////////////////////////////////////////////////////////////
  100. ///////////////////////// Work in Progress //////////////////////
  101. /////////////////////////////////////////////////////////////////
  102. /*-----------------------------------------------------------.
  103. / Cineon DPX settings /
  104. '-----------------------------------------------------------*/
  105. //I have yet to find good default settings for this .. maybe you can?
  106. float Red = 8.0; //[1.0 - 15.0]
  107. float Green = 8.0; //[1.0 - 15.0]
  108. float Blue = 8.0; //[1.0 - 15.0]
  109. float ColorGamma = 2.5f; //[0.1 - 2.5]
  110. float DPXSaturation = 3.0f; //[0.0 - 8.0]
  111. float RedC = 0.36; //[0.6 - 0.2]
  112. float GreenC = 0.36; //[0.6 - 0.2]
  113. float BlueC = 0.34; //[0.6 - 0.2]
  114. float Blend = 0.2; //[1.0 - 0.0] How strong the effect should be