Created
February 12, 2012 14:45
-
-
Save steeve/1808883 to your computer and use it in GitHub Desktop.
FXAA Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*====================================================================================== | |
FXAA Injector danoc1 v1.25 SETTINGS | |
======================================================================================*/ | |
// TODO: Normalize values to be on a human range scale, whole numbers prefered, decimals usable for micro adjustments | |
// These values should have min/max limit checks included in their functions, so that the end user doesn't get crazy results | |
/*------------------------------------------------------------------------------ | |
FILTER SELECTION | |
------------------------------------------------------------------------------*/ | |
// Comment to deactivate an effect. | |
// Example: To disable the tonemap effect, use // in front of #define USE_TONEMAP | |
#define USE_ANTI_ALIASING | |
#define USE_PRE_SHARPEN | |
//#define USE_BLOOM | |
#define USE_TECHNICOLOR | |
#define USE_TONEMAP | |
//#define USE_SEPIA | |
//#define USE_VIGNETTE | |
#define USE_POST_SHARPEN | |
//#define USE_FINAL_LIMITER | |
/*------------------------------------------------------------------------------ | |
FXAA SHADER | |
------------------------------------------------------------------------------*/ | |
// Set values to calculate the amount of Anti Aliasing applied | |
float fxaaQualitySubpix = 0.25; // Default: 0.75 Raise to increase amount of blur | |
float fxaaQualityEdgeThreshold = 0.154; // Lower the value for more smoothing | |
float fxaaQualityEdgeThresholdMin = 0.0358; // Lower the value for more smoothing | |
/*------------------------------------------------------------------------------ | |
PRE_SHARPEN | |
------------------------------------------------------------------------------*/ | |
//For higher precision in the calculation of contour, requires slightly more processing power | |
bool highQualitySharpen = 1; //0 = Disable | 1 = Enable | |
// Set values to calculate the amount of AA produced blur to consider for the sharpening pass | |
#define Average 0.6 | |
#define CoefBlur 1.5 | |
// Set values of the sharpening amount | |
#define SharpenEdge 0.25 | |
#define Sharpen_val0 1.5 | |
/*------------------------------------------------------------------------------ | |
BLOOM | |
------------------------------------------------------------------------------*/ | |
// Number of samples per pixel taken for the Bloom effect. Don't set it to high! 4 = 25spp, 8 = 81spp, 16 = 289spp | |
#define NUM_SAMPLES2 8 | |
float BloomPreset = 3.5; | |
float BloomThreshold = 3.5; | |
float BloomWidth = 3.5; | |
float BloomPower = 3.5; | |
/*------------------------------------------------------------------------------ | |
TECHNICOLOR | |
------------------------------------------------------------------------------*/ | |
#define TechniAmount 0.01 // 1.00 = Max | |
#define TechniPower 4.50 | |
// lower values = stronger channel | |
#define redNegativeAmount 0.80 // 1.00 = Max | |
#define greenNegativeAmount 1.0 // 1.00 = Max | |
#define blueNegativeAmount 0.99 // 1.00 = Max | |
/*------------------------------------------------------------------------------ | |
TONEMAP | |
------------------------------------------------------------------------------*/ | |
#define Gamma 0.9 | |
#define Exposure 0.00 | |
#define Saturation 1.75 | |
#define BlueShift 0.00 | |
#define Bleach 0.05 | |
#define Defog 0.1 | |
#define FogColor float4(0.04, 0.295, 0.11, 3.1) | |
/*------------------------------------------------------------------------------ | |
SEPIA | |
------------------------------------------------------------------------------*/ | |
#define Earthyellow // Color Tone, available tones can be seen in ColorTones.PNG (Do not use spaces in the name!) | |
#define GreyPower 2.0 | |
#define SepiaPower 0.0 | |
/*------------------------------------------------------------------------------ | |
VIGNETTE | |
------------------------------------------------------------------------------*/ | |
// Vignette effect, process by which there is loss in clarity towards the corners and sides of the image, like a picture frame | |
#define VignetteCenter float2(0.500, 0.500) | |
#define VignetteRadius 0.65 | |
#define VignetteAmount -0.65 | |
/*------------------------------------------------------------------------------ | |
POST_SHARPEN | |
------------------------------------------------------------------------------*/ | |
// Controls additional sharpening applied after previous processing. Strength should be max 0.25! | |
float Sharpen = 0.025; | |
/*------------------------------------------------------------------------------ | |
FINAL_LIMITER | |
------------------------------------------------------------------------------*/ | |
// Controls the strenght of the limiter. 1.000 for default setting | |
int LimiterStrenght = 1.000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment