Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Keys to disable/enable effects: F5 - Bloom, F6 - Lens Flares, F7 - AO and GI, F8 - Depth of Field, F9 to view AO/GI buffer.
- #define GREAT_FX_AO_ENABLE_GI 1 // Enables Indirect Illumination
- #define GREAT_FX_AO_DO_ADDITIONAL_SAMPLES 0 //Not recomended, but should improve quality a bit.
- #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).
- #define GREAT_FX_AO_OUTPUT_FACTOR_TYPE 1
- #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
- #define GREAT_FX_ENABLE_BLOOM 1
- #define GREAT_FX_ENABLE_LF 1
- #define GREAT_FX_ENABLE_DOF 1
- #define GREAT_FX_ENABLE_AO 1
- #define GREAT_FX_ENABLE_TONEMAP 1
- #if (__APPLICATION__==1565080009)//Dark Souls II
- // Global Lens parameters.
- static const float fAperture = 8.5f;
- static const float fApertureDiameter = 1.16f;
- static const float fFocalLength = 4.5f;
- // Bloom parameters.
- static const float fBloomBrightPassValue = 0.4f;
- static const float fBloomMultiplierValue = 0.4f;
- // DoF parameters.
- static int DoFSamplesPerRing = 4;
- static int DoFRings = 5;
- static int BokehDoFEdgeCount = 5;
- static int BokehDoFSamplePerEdge = 2;
- static const float DoFMaxBlur = 2f;
- static const float BokehDoFIntensity = 1f;
- static const float BokehDoFTreshold = 0.7f;
- // AO and GI parameters.
- static const float fAORadius = 1.5f;
- static const float fAOBias = 0.0f;
- static const float fDepthClip = 90f;
- static const float fGIRadius = 6.0f;
- static const float fBlurSize = 1.00f;
- static const float fAttenuation = 8.0f;
- static const float fGI_Intensity = 4.0f;
- static const float fAdditionalSamplesShift = 5.0f;
- static const float fAOBlurDepthTreshold = 0.0005f;
- static const float fAODepthBias = 0.01f;
- static const float fAOTexScale = 0.5f;
- static int g_NumDir = 8;
- static int g_NumRays = 8;
- static int g_NumSteps = 8;
- static int g_BlurSamples = 11;
- // Tone-mapping.
- static const float ShoulderStrength=0.2200f;
- static const float LinearStrength=0.2996f;
- static const float LinearAngle=0.1000f;
- static const float ToeStrength=0.2000f;
- static const float ToeNumerator=0.0200f;
- static const float ToeDenominator=0.2996f;
- static const float LinearWhite=0.95f;
- #else //Default
- // Global Lens parameters.
- static const float fAperture = 8.5f;
- static const float fApertureDiameter = 1.16f;
- static const float fFocalLength = 4.5f;
- // Bloom parameters.
- static const float fBloomBrightPassValue = 0.5f;
- static const float fBloomMultiplierValue = 0.4f;
- // DoF parameters.
- static int DoFSamplesPerRing = 4;
- static int DoFRings = 5;
- static int BokehDoFEdgeCount = 5;
- static int BokehDoFSamplePerEdge = 2;
- static const float DoFMaxBlur = 2f;
- static const float BokehDoFIntensity = 1f;
- static const float BokehDoFTreshold = 0.7f;
- // AO and GI parameters.
- static const float fAORadius = 1.5f;
- static const float fAOBias = 0.0f;
- static const float fDepthClip = 90f;
- static const float fGIRadius = 6.0f;
- static const float fBlurSize = 1.00f;
- static const float fAttenuation = 4.0f;
- static const float fGI_Intensity = 4.0f;
- static const float fAdditionalSamplesShift = 5.0f;
- static const float fAOBlurDepthTreshold = 0.0005f;
- static const float fAODepthBias = 0.01f;
- static const float fAOTexScale = 0.25f;
- static int g_NumDir = 8;
- static int g_NumRays = 8;
- static int g_NumSteps = 8;
- static int g_BlurSamples = 11;
- // Tone-mapping.
- static const float ShoulderStrength=0.2200f;
- static const float LinearStrength=0.2996f;
- static const float LinearAngle=0.1000f;
- static const float ToeStrength=0.2000f;
- static const float ToeNumerator=0.0100f;
- static const float ToeDenominator=0.2996f;
- static const float LinearWhite=0.95f;
- #endif
Add Comment
Please, Sign In to add comment