/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
 |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
  \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
	Game: The Lord of the Rings - War in the North
	Preset: Betterplay - Color, Lighting and Sharp by JumperXxs
	SweetFX: v2.0 Preview 8 by CeeJay.dk
	API hook: Reshade by Crosire
  /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
 |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
  \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
//####################################################################################################################
//########### Choose effects ##########################################################################################
//####################################################################################################################
//    |---------------------------------------|---|
	#define USE_SPLITSCREEN   		0
//    |---------------------------------------|---|
	#define USE_SMAA         		1
	#define USE_FXAA          		0
	#define USE_BLOOM         		1
	#define USE_HDR           		1
	#define USE_LUMASHARPEN   		1
//    |---------------------------------------|---|
	#define USE_LEVELS        		1
	#define USE_TECHNICOLOR   		0
	#define USE_TECHNICOLOR2    		1
	#define USE_DPX          		1
	#define USE_TONEMAP       		1
	#define USE_VIBRANCE      		0
	#define USE_CURVES        		1
	#define USE_COLORMATRIX   		0
	#define USE_LIFTGAMMAGAIN 		0
	#define USE_DITHER        		0
//    |---------------------------------------|---|
	#define USE_ASCII         		0
	#define USE_CARTOON       		0
	#define USE_EXPLOSION     		0
	#define USE_CA            		0
	#define USE_ADVANCED_CRT  		0
	#define USE_PIXELART_CRT  		0
	#define USE_LENS_DISTORTION 		0
	#define USE_NOSTALGIA       		0
	#define USE_MONOCHROME    		0
	#define USE_SEPIA         		1
	#define USE_VIGNETTE      		0
	#define USE_FILMGRAIN     		0
	#define USE_BORDER        		0
	#define USE_TRANSITION    		0
	#define USE_DEPTH         		0 
	#define USE_CUSTOM        		0
//    |---------------------------------------|---|
//####################################################################################################################
//########### Ascii settings ##########################################################################################
//####################################################################################################################
#define Ascii_input_image                         	1   				// [1 or 2]
#define Ascii_spacing                             	1   				// [0 to 9]
#define Ascii_font                                	2   				// [1 or 2]
#define Ascii_font_color 				float3(255, 255, 255)  		// [0 to 255]
#define Ascii_background_color 				float3(0, 0, 0)        		// [0 to 255]
#define Ascii_swap_colors                         	0
#define Ascii_invert_brightness                   	0   				// [0 or 1] 
#define Ascii_font_color_mode                     	1   				// [0 to 2]
//####################################################################################################################
//########### SMAA Anti-aliasing settings #############################################################################
//####################################################################################################################
#define SMAA_THRESHOLD              			0.06				// [0.05 to 0.20]
#define SMAA_DEPTH_THRESHOLD        			0.015				// [0.001 to 0.100]
#define SMAA_MAX_SEARCH_STEPS         			98  				// [0 to 98]
#define SMAA_MAX_SEARCH_STEPS_DIAG     			16  				// [0 to 16]
#define SMAA_CORNER_ROUNDING           			25  				// [0 to 100]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Advanced SMAA settings <------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define SMAA_EDGE_DETECTION            			2  				// [1|2|3]
#define SMAA_DIRECTX9_LINEAR_BLEND     			0  				// [0 or 1]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> SMAA Predication settings <---------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define SMAA_PREDICATION               			1  				// [0 or 1]
#define SMAA_PREDICATION_THRESHOLD 			0.001                                   
#define SMAA_PREDICATION_SCALE       			4.0
#define SMAA_PREDICATION_STRENGTH    			0.5
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Debug SMAA settings -<--------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define SMAA_DEBUG_OUTPUT            			0  				// [0 to 4]
//####################################################################################################################
//########### FXAA Anti-aliasing settings #############################################################################
//####################################################################################################################
#define FXAA_QUALITY__PRESET          			9  				// [1 to 9]
#define fxaa_Subpix               			0.600  				// [0.000 to 1.000]
#define fxaa_EdgeThreshold        			0.100  				// [0.000 to 1.000]
#define fxaa_EdgeThresholdMin     			0.050  				// [0.000 to 1.000]
//####################################################################################################################
//########### Explosion settings ######################################################################################
//####################################################################################################################
#define Explosion_Radius     				2.0				// [0.2 to 100.0]
//####################################################################################################################
//########### Chromatic Aberration settings ###########################################################################
//####################################################################################################################
#define Chromatic_shift 				float2(2.5,-0.5)		// [-100.0 to 100.0]
#define Chromatic_strength   				1.0
//####################################################################################################################
//########### Cartoon settings ########################################################################################
//####################################################################################################################
#define CartoonPower         				1.5     			// [0.1 to 10.0]
#define CartoonEdgeSlope     				1.5     			// [0.1 to 8.0]
//####################################################################################################################
//########### Advanced CRT settings ###################################################################################
//####################################################################################################################
#define CRTAmount            				1.00
#define CRTResolution        				2.0
#define CRTgamma             				2.2
#define CRTmonitorgamma      				2.4    				// [0.0 to 4.0]
#define CRTBrightness        				1.2     			// [1.0 to 3.0]
#define CRTScanlineIntensity 				2.0     			// [2.0 to 4.0]
#define CRTScanlineGaussian  				1       			// [0 or 1]
#define CRTCurvature         				1       			// [[0 or 1]
#define CRTCurvatureRadius   				2.0     			// [0.0 to 2.0]
#define CRTCornerSize        				0.0100  			// [0.0000 to 0.0020]
#define CRTDistance         				2.00    			// [0.00 to 4.00]
#define CRTAngleX            				0.00    			// [-0.20 to 0.20]
#define CRTAngleY           				-0.15   			// [-0.20 to 0.20]
#define CRTOverScan          				1.00    			// [1.00 to 1.10]
#define CRTOversample        				0       			// [0 or 1]
//####################################################################################################################
//########### Pixel Art CRT ###########################################################################################
//####################################################################################################################
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Emulated input resolution <---------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_resolution_mode 			1 				// [1 or 2]
#define PixelArtCRT_resolution_ratio 			(1.0/4.0)
#define PixelArtCRT_fixed_resolution 			float2(320.0,160.0)
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Hardness <--------------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_hardScan 				-24.0
#define PixelArtCRT_hardPix  				-24.0
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Display warp <----------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_warp 		      		float2(1.0/64.0,1.0/24.0)
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Type of shadow mask <---------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_ShadowMask				3 				// [1 to 4]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Amount of shadow mask <-------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_maskDark  				0.5
#define PixelArtCRT_maskLight 				1.5
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Falloff shape <---------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_shape 				3.0
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Amp signal <------------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define PixelArtCRT_overdrive 				1.25
//####################################################################################################################
//########### Bloom settings  #########################################################################################
//####################################################################################################################
#define BloomThreshold      				25.00    			// [0.00 to 50.00]
#define BloomPower          				1.500   			// [0.000 to 8.000]
#define BloomWidth         				0.0500  			// [0.0000 to 1.0000]
//####################################################################################################################
//########### HDR settings  ###########################################################################################
//####################################################################################################################
#define HDRPower             				1.40    			// [0.00 to 8.00]
#define radius2              				0.86    			// [0.00 to 8.00]
//####################################################################################################################
//########### LumaSharpen settings ####################################################################################
//####################################################################################################################
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Sharpening <------------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define sharp_strength 					2.80  				// [0.10 to 3.00]
#define sharp_clamp    					0.333				// [0.000 to 1.000]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Advanced sharpening settings <------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define pattern 					4       			// [1|2|3|4]
#define offset_bias 					0.8				// [0.0 to 6.0]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Debug sharpening settings <---------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define show_sharpen 					0   				// [0 or 1]
//####################################################################################################################
//########### Levels settings  ########################################################################################
//####################################################################################################################
#define Levels_black_point 				 -5  				// [0 to 255]
#define Levels_white_point				245    				// [0 to 255]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Debug settings <--------------------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define Levels_highlight_clipping 			0 				// [0 or 1]
//####################################################################################################################
//########### TECHNICOLOR settings ####################################################################################
//####################################################################################################################
#define TechniAmount        				0.20 				// [0.00 to 1.00]
#define TechniPower         				8.00 				// [0.00 to 8.00]
#define redNegativeAmount   				0.88 				// [0.00 to 1.00]
#define greenNegativeAmount 				0.88 				// [0.00 to 1.00]
#define blueNegativeAmount  				0.88 				// [0.00 to 1.00]
//####################################################################################################################
//########### TECHNICOLOR 2 settings ##################################################################################
//####################################################################################################################
#define Technicolor2_Red_Strength 			0.5				// [0.05 to 1.0]
#define Technicolor2_Green_Strength 			0.5				// [0.05 to 1.0]
#define Technicolor2_Blue_Strength 			0.5				// [0.05 to 1.0]
#define Technicolor2_Brightness 	  		0.9				// [0.5 to 1.5]
#define Technicolor2_Strength 		  		0.7				// [0.0 to 1.0].
#define Technicolor2_Saturation  	  		0.7				// [0.0 to 1.5]
//####################################################################################################################
//########### Cineon DPX settings #####################################################################################
//####################################################################################################################
#define Red   						5.0  				// [1.0 to 15.0]
#define Green 						5.0  				// [1.0 to 15.0]
#define Blue  						5.0  				// [1.0 to 15.0]
#define ColorGamma    					2.5  				// [0.1 to 2.5]
#define DPXSaturation 					3.2  				// [0.0 to 8.0]
#define RedC   						0.38  				// [0.60 to 0.20]
#define GreenC 						0.38  				// [0.60 to 0.20]
#define BlueC  						0.38  				// [0.60 to 0.20]
#define Blend 						0.15   				// [0.00 to 1.00]
//####################################################################################################################
//########### Monochrome settings #####################################################################################
//####################################################################################################################
#define Monochrome_conversion_values 			float3(0.21,0.72,0.07)		// [0.00 to 1.00]
#define Monochrome_color_saturation         		0.00            		// [0.00 to 2.00]
//####################################################################################################################
//########### Color Matrix settings ###################################################################################
//####################################################################################################################
#define ColorMatrix_Red   				float3(0.817,0.183,0.000) 	// [0.00 to 1.00]
#define ColorMatrix_Green 				float3(0.333,0.667,0.000) 	// [0.00 to 1.00]
#define ColorMatrix_Blue  				float3(0.000,0.125,0.875) 	// [0.00 to 1.00]
#define ColorMatrix_strength 				1.0
//####################################################################################################################
//########### Lift Gamma Gain settings ################################################################################
//####################################################################################################################
#define RGB_Lift  					float3(1.000,1.000,1.000) 	// [0.000 to 2.000]
#define RGB_Gamma 					float3(1.000,1.000,1.000) 	// [0.000 to 2.000]
#define RGB_Gain  					float3(1.050,1.050,1.050) 	// [0.000 to 2.000]
//####################################################################################################################
//########### Tonemap settings ########################################################################################
//####################################################################################################################
#define Gamma       					0.900  				// [0.000 to 2.000]
#define Exposure    				       -0.150  				// [-1.000 to 1.000]
#define Saturation  					0.500  				// [-1.000 to 1.000]
#define Bleach      					0.000  				// [0.000 to 1.000]
#define Defog       					0.000  				// [0.000 to 1.000]
#define FogColor 					float3(0.00, 0.00, 2.55)	// [0.00 to 2.55]
//####################################################################################################################
//########### Vibrance settings #######################################################################################
//####################################################################################################################
#define Vibrance     					0.25  				// [-1.00 to 1.00]
#define Vibrance_RGB_balance 				float3(0.00, 0.00, 0.00)	// [-10.00 to 10.00]
//####################################################################################################################
//########### Curves settings #########################################################################################
//####################################################################################################################
#define Curves_mode        				2 				// [0|1|2]
#define Curves_contrast				        0.03 				// [-1.00 to 1.00]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Advanced curve settings <-----------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define Curves_formula     				1 				// [1|2|3|4|5|6|7|8|9|10|11]
//####################################################################################################################
//########### Sepia settings ##########################################################################################
//####################################################################################################################
#define ColorTone 					float3(1.30, 1.30, 1.30)	// [0.00 to 2.55]
#define GreyPower 					0.25				// [0.00 to 1.00]
#define SepiaPower 					0.15				// [0.00 to 1.00]
//####################################################################################################################
//########### Daltonize settings ######################################################################################
//####################################################################################################################
#define Daltonize_type 					1    				// [1|2|3]
//####################################################################################################################
//########### Choose effects  #########################################################################################
//####################################################################################################################
#define FilmGrain_intensity 				0.50 				// [0.00 to 1.00]
#define FilmGrain_variance  				0.40 				// [0.00 to 1.00]
#define FilmGrain_SNR          				6 				// [0 to 16]
// ----------------------------------------------------------------------------------------------------------------|
// --------------> Advanced Film Grain settings <------------------------------------------------------------------|
// ----------------------------------------------------------------------------------------------------------------|
#define FilmGrain_mean     				0.50 				// [0.00 to 1.00]
//####################################################################################################################
//########### Vignette settings #######################################################################################
//####################################################################################################################
#define VignetteType       				1  				// [1|2|3]
#define VignetteRatio   				1.00  				// [0.15 to 6.00]
#define VignetteRadius  				1.00  				// [-1.00 to 3.00]
#define VignetteAmount 				       -1.00  				// [-2.00 to 1.00]
#define VignetteSlope      				2 				// [2 to 16]
#define VignetteCenter					float2(0.500, 0.500)  		// [0.000 to 1.000]
//####################################################################################################################
//########### Dither settings #########################################################################################
//####################################################################################################################
#define dither_method      				1  				// [1 or 2]
//####################################################################################################################
//########### Border settings #########################################################################################
//####################################################################################################################
#define border_width 					float2(0,1)        		// [0 to 2048]
#define border_ratio 					float(2.35 / 1.0)  		// [0.1000 to 10.0000]
#define border_color 					float3(180, 0, 0)  		// [0 to 255]
//####################################################################################################################
//########### Splitscreen settings ####################################################################################
//####################################################################################################################
#define splitscreen_mode   				1  				// [1|2|3|4|5|6]
//####################################################################################################################
//########### Transition ##############################################################################################
//####################################################################################################################
#define Transition_time            			5000  				// [1 to 60000]
#define Transition_texture 				"Winners_Dont_Use_Drugs.png" 	// ["filename"]
#define Transition_texture_width    			720
#define Transition_texture_height   			480
#define Transition_type     				ImageFadeOut
//####################################################################################################################
//########### Depth ###################################################################################################
//####################################################################################################################
#define Depth_z_near               			0.01   				// [0.00001 to 100000.0]
#define Depth_z_far              			100.00   			// [0.00001 to 100000.0]
//####################################################################################################################
//########### Custom settings #########################################################################################
//####################################################################################################################
#define custom_strength  				1.1 				// [0.00 to 1.00]
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
 |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
  \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/