Guest User

Untitled

a guest
Mar 31st, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.78 KB | None | 0 0
  1. // Keys to disable/enable effects: F5 - Bloom, F6 - Lens Flares, F7 - AO and GI, F8 - Depth of Field, F9 to view AO/GI buffer.
  2. #define GREAT_FX_AO_ENABLE_GI 1 // Enables Indirect Illumination
  3. #define GREAT_FX_AO_DO_ADDITIONAL_SAMPLES 0 //Not recomended, but should improve quality a bit.
  4. #define GREAT_FX_AO_OFFSETS_TYPE 2 //0 - ssao, 1 - hbao(better, can be faster, didn't checked yet), 2 - best and beast(preformance eater).
  5. #define GREAT_FX_AO_OUTPUT_FACTOR_TYPE 1
  6. #define GREAT_FX_DOF_AUTOFOCUS_TYPE 1 // 1 - simple center focus, 2 - average from each screen corner and center, 3 - average from 6-bladed aperture
  7. #define GREAT_FX_ENABLE_BLOOM 1
  8. #define GREAT_FX_ENABLE_LF 1
  9. #define GREAT_FX_ENABLE_DOF 1
  10. #define GREAT_FX_ENABLE_AO 1
  11. #define GREAT_FX_ENABLE_TONEMAP 1
  12. #if (__APPLICATION__==1565080009)//Dark Souls II
  13.     // Global Lens parameters.
  14.     static const float fAperture = 8.5f;
  15.     static const float fApertureDiameter = 1.16f;
  16.     static const float fFocalLength = 4.5f;
  17.     // Bloom parameters.
  18.     static const float fBloomBrightPassValue = 0.4f;
  19.     static const float fBloomMultiplierValue = 0.4f;
  20.     // DoF parameters.
  21.     static int DoFSamplesPerRing = 4;
  22.     static int DoFRings = 5;
  23.     static int BokehDoFEdgeCount = 5;
  24.     static int BokehDoFSamplePerEdge = 2;
  25.     static const float DoFMaxBlur = 2f;
  26.     static const float BokehDoFIntensity = 1f;
  27.     static const float BokehDoFTreshold = 0.7f;
  28.     // AO and GI parameters.
  29.     static const float fAORadius = 1.5f;
  30.     static const float fAOBias = 0.0f;
  31.     static const float fDepthClip = 90f;
  32.     static const float fGIRadius = 6.0f;
  33.     static const float fBlurSize = 1.00f;
  34.     static const float fAttenuation = 8.0f;
  35.     static const float fGI_Intensity = 4.0f;
  36.     static const float fAdditionalSamplesShift = 5.0f;
  37.     static const float fAOBlurDepthTreshold = 0.0005f;
  38.     static const float fAODepthBias = 0.01f;
  39.     static const float fAOTexScale = 0.5f;
  40.     static int g_NumDir = 8;
  41.     static int g_NumRays = 8;
  42.     static int g_NumSteps = 8;
  43.     static int g_BlurSamples = 11;
  44.     // Tone-mapping.
  45.     static const float ShoulderStrength=0.2200f;
  46.     static const float LinearStrength=0.2996f;
  47.     static const float LinearAngle=0.1000f;
  48.     static const float ToeStrength=0.2000f;
  49.     static const float ToeNumerator=0.0200f;
  50.     static const float ToeDenominator=0.2996f;
  51.     static const float LinearWhite=0.95f;
  52. #else //Default
  53.     // Global Lens parameters.
  54.     static const float fAperture = 8.5f;
  55.     static const float fApertureDiameter = 1.16f;
  56.     static const float fFocalLength = 4.5f;
  57.     // Bloom parameters.
  58.     static const float fBloomBrightPassValue = 0.5f;
  59.     static const float fBloomMultiplierValue = 0.4f;
  60.     // DoF parameters.
  61.     static int DoFSamplesPerRing = 4;
  62.     static int DoFRings = 5;
  63.     static int BokehDoFEdgeCount = 5;
  64.     static int BokehDoFSamplePerEdge = 2;
  65.     static const float DoFMaxBlur = 2f;
  66.     static const float BokehDoFIntensity = 1f;
  67.     static const float BokehDoFTreshold = 0.7f;
  68.     // AO and GI parameters.
  69.     static const float fAORadius = 1.5f;
  70.     static const float fAOBias = 0.0f;
  71.     static const float fDepthClip = 90f;
  72.     static const float fGIRadius = 6.0f;
  73.     static const float fBlurSize = 1.00f;
  74.     static const float fAttenuation = 4.0f;
  75.     static const float fGI_Intensity = 4.0f;
  76.     static const float fAdditionalSamplesShift = 5.0f;
  77.     static const float fAOBlurDepthTreshold = 0.0005f;
  78.     static const float fAODepthBias = 0.01f;
  79.     static const float fAOTexScale = 0.25f;
  80.     static int g_NumDir = 8;
  81.     static int g_NumRays = 8;
  82.     static int g_NumSteps = 8;
  83.     static int g_BlurSamples = 11;
  84.     // Tone-mapping.
  85.     static const float ShoulderStrength=0.2200f;
  86.     static const float LinearStrength=0.2996f;
  87.     static const float LinearAngle=0.1000f;
  88.     static const float ToeStrength=0.2000f;
  89.     static const float ToeNumerator=0.0100f;
  90.     static const float ToeDenominator=0.2996f;
  91.     static const float LinearWhite=0.95f;
  92. #endif
Add Comment
Please, Sign In to add comment