//DON'T DELETE THIS LINE

//   KEEP A BACKUP OF THIS FILE IF YOU MODIFY IT!
//   
//   There yoy have a chance to boost your FPS,
//   the more lines you insert, the more your FPS will be high.
//   
//   The downside of using this method is that every setting
//   you will write here, will be static and so that 
//   you will NOT BE ABLE RO MODIFY it "on-the-fly" in Retroarch anymore.
//
//   Lines have this format: #define PARAMETER VALUE
//   where:
//       * PARAMETER is the shader parameter as defined in config.inc
//         (look for lines starting with #pragma there).
//       * VALUE is the value you want to assign to that parameter.
//         (it is the same you would assign to that within retroarch)
//
//   Notice, there is no equal sign, nor double quotes, so, eg:
//       If you know that you will always use the bezel frame:
//       #define DO_BEZEL 1.0
//
//       If you know you'll never alter the contrast:
//       #define CONTRAST 0.0
//
//       If you know your curvature will never change:
//       #define GEOM_WARP_X
//
//   You can disable a line by erasing it or,
//   since everything after "//" is ignored,
//   by prepending "//", eg:
//
//       // #define DO_BEZEL 1.0
//   
//   ...that's it, you just need to copy the values from the
//   preset you like to the right setting here.
//   
//   
  

 
// #define DO_CCORRECTION 1.0
// #define BRIGHTNESS 0.0
// #define CONTRAST   0.0
// #define SATURATION 1.0

// #define DO_IN_GLOW 1.0

// #define DO_PIXELGRID 1.0

// #define GEOM_WARP_X 0.28
// #define GEOM_WARP_Y 0.32

// #define DO_AMBILIGHT 1.0

// #define DO_BEZEL 1.0
// #define BEZEL_USE_STRAIGHT 0.0
// #define BEZEL_RFL_BLR_SHD 0.0
// #define BEZEL_RFL_OFFSET 0.001
// #define BEZEL_REFL_ZOOM 0.99
// #define BEZEL_R -0.3
// #define BEZEL_G -0.3
// #define BEZEL_B -0.3
	
// #define DO_VIGNETTE 1.0
// #define V_SIZE 1.08
// #define V_POWER 1.00

// #define DO_SPOT 1.0
// #define S_POSITION 194.0
// #define S_SIZE 0.4
// #define S_POWER 0.1
 
// #define ASPECT_X 0.0

// #define DO_TILT 0.0





// Color correction
#define DO_CCORRECTION 1.0
#define IN_GLOW_POWER  1.3
#define LUMINANCE 0.2
#define BRIGHTNESS 0.0
#define CONTRAST 0.0
#define TEMPERATURE 7200.0
#define IN_GLOW_GAMMA 2.0
#define GAMMA_OUT 0.43
#define COLOR_MONO_COLORIZE 0.0
#define COLOR_MONO_HUE1 0.25
#define COLOR_MONO_HUE2 0.3
#define COLOR_MONO_HUE_BIAS 0.0
#define SATURATION 1.0

// FXAA
#define DO_FXAA 0.0


// RF Noise
#define DO_RF_NOISE 0.0
#define RF_NOISE_STRENGTH 0.05

// NTSC color artifacting
#define DO_NTSC_ARTIFACTS 0.0
#define NTSC_MIX 0.5
#define NTSC_FILTER_WIDTH 17.0
#define NTSC_FILTER_SCF 5.30
#define NTSC_FILTER_FC 2.5
#define NTSC_PHASE_SHIFT 0.0
#define NTSC_ARTF_TRSH 0.1
#define NTSC_SHOW_ARTF_MASK 0.0
#define NTSC_ARTF_NOBLUR 0.0
#define NTSC_ARTF_NOBLEED 0.0
#define NTSC_ARTF_ZAP 0.0

// YIQ/YUV bandwidth limited chroma bleeding.
#define DO_SAT_BLEED 0.0
#define SAT_BLEED_PAL 0.0
#define SAT_BLEED_STRENGTH 1.0
#define SAT_BLEED_SIZE_LEFT 5.0
#define SAT_BLEED_SIZE_RIGHT 5.0
#define SAT_BLEED_FALLOFF 1.7

//Deconvergence
#define DO_SHIFT_RGB 1.0
#define OFFSET_STRENGTH 0.3
#define SHIFT_R -20.0
#define SHIFT_G 0.0
#define SHIFT_B 20.0

// Input Blur / light glowing
#define DO_IN_GLOW 1.0
#define IN_GLOW_BIAS 1.0
#define IN_GLOW_SPREAD 0.6
// #define IN_GLOW_W -0.8
#define IN_GLOW_H 7.0

// #define TATE 1.0

// pixel Grid
#define DO_PIXELGRID 1.0
#define PIXELGRID_OVERMASK 1.0
#define DO_PIXELGRID_W  1.0
#define PIXELGRID_SIZE_W 1.0
#define PIXELGRID_MUL_X 1.0
#define PIXELGRID_H_PRST 1.0
#define PIXELGRID_H_COUNT 3.0
#define PIXELGRID_R_SHIFT 0.0
#define PIXELGRID_G_SHIFT 1.0
#define PIXELGRID_B_SHIFT 2.0
#define PIXELGRID_MIN_W 0.25
#define PIXELGRID_MAX_W 0.40
#define PIXELGRID_GAMMA_W 1.5
#define PIXELGRID_BASAL_GRID 0.02

#define DO_PIXELGRID_H 1.0
// #define PIXELGRID_COREY_FAKE_SCAN -1.0
#define PIXELGRID_MIN_H	0.3
#define PIXELGRID_MAX_H 0.7
#define PIXELGRID_GAMMA_H 4.2
#define PIXELGRID_NO_INTERBLEED_H 0.0
// #define PIXELGRID_H_ANTIMOIRE 0.0
#define PIXELGRID_OFFSET_CORE 0.12
#define PIXELGRID_DECON_R_H 0.0
#define PIXELGRID_DECON_G_H 0.0
#define PIXELGRID_DECON_B_H 0.0
#define PIXELGRID_H_DEDOT 0.0

#define MIN_LINES_INTERLACED 440.0
// #define PIXELGRID_INTR_DISABLE_Y 1.0
// #define PIXELGRID_INTR_FLICK_MODE 0.0
// #define PIXELGRID_INTR_FLICK_POWR 0.0

// #define PIXELGRID_Y_MASK 0.25
#define PIXELGRID_Y_MASK_COORDS 0.0
#define PIXELGRID_Y_MASK_HEIGHT 1.0
#define PIXELGRID_Y_MASK_OFFSET 1.0
#define PIXELGRID_Y_MASK_SHIFT 0.15
#define PIXELGRID_Y_MASK_STEEP 1.0
#define PIXELGRID_Y_MASK_ON_WHITE 0.0
#define PIXELGRID_Y_SPARK 1.0

// Dot matrix emulation
#define DO_DOT_MATRIX 0.0
#define DOT_M_G_STR 0.0
#define DOT_M_G_TRESH 1.1
#define DOT_M_G_BRT 0.0
#define DOT_M_G_SHARP 0.0
#define DOT_M_MBLUR_STR	0.45
#define DOT_M_MBLUR_MODE 0.0
#define DOT_M_SHADOW_STR 0.0
#define DOT_M_SHADOW_OFF 0.0
#define DOT_M_MULTIPLY 1.0



// Halo
#define DO_HALO 1.0
#define HALO_NO_PREGAIN 1.0
#define HALO_POWER 0.5
#define HALO_SHARPNESS 6.50
#define HALO_GAMMA 2.0
#define HALO_GAMMA_OUT 1.0
#define HALO_VS_SCAN 0.7

// Bloom
#define DO_BLOOM 1.0
#define BLOOM_MIX 0.40
#define BLOOM_SIZE 4.0
#define BLOOM_QUALITY 1.0
#define BLOOM_GAMMA 8.0
#define BLOOM_GAMMA_OUT 1.2
#define BLOOM_POWER 1.20
#define BLOOM_EYE_ADPT_SRT 0.6
#define BLOOM_EYE_INERTIA 750
#define BLOOM_OVER_WHITE 0.5
#define BLOOM_BYPASS 0.0

//Curvature parameters:
#define DO_CURVATURE 1.0
#define GEOM_WARP_X 0.28
#define GEOM_WARP_Y 0.32
#define GEOM_CORNER_SIZE 0.01
#define GEOM_CORNER_SMOOTH 200.0

//Bezel related
#define DO_BEZEL 1.0
#define BEZEL_USE_STRAIGHT 0.0
#define BEZEL_INNER_ZOOM -0.162
#define BEZEL_FRAME_ZOOM 0.042
#define BEZEL_R -0.19
#define BEZEL_G -0.19
#define BEZEL_B -0.19
#define BEZEL_CON 2.00
#define BEZEL_RFL_ZOOM 0.0
#define BEZEL_REFL_STRENGTH 1.5
#define BEZEL_RFL_BLR_SHD -0.4
#define BEZEL_ROUGHNESS 1.0
#define BEZEL_DIFFUSION_STR 0.5
#define BEZEL_SPCL_STRENGTH 0.5
#define BEZEL_CORNER_DARK 0.4

//Background Image
#define DO_BG_IMAGE 1.0
// #define BG_IMAGE_OVER 1.0
#define BG_IMAGE_OFFX 0.001
#define BG_IMAGE_OFFY 0.001
#define BG_IMAGE_ZOOM 1.0
// #define BG_IMAGE_ROTATION -1.0
// #define BG_IMAGE_NIGHTIFY  0.8
#define BG_IMAGE_WRAP_MODE 1.0

//Backdrop image
#define DO_BACKDROP 0.0
#define BACKDROP_OFFX 0.0
#define BACKDROP_OFFY 0.0
#define BACKDROP_ZOOM 1.0

//Back leds
//Emulates leds under the monitor frame that slowly reacts to image contents
// #define DO_AMBILIGHT 1.0
#define LABEL_WARNING3 1.0
#define AMBI_STEPS 5.0
#define AMBI_FALLOFF 0.35
#define AMBI_POWER 1.0
#define AMBI_INT_OFFSET -0.3
#define AMBI_STRETCH 0.8
#define AMBI_STRETCH_VERTICAL 0.5
#define AMBI_GAMMA 1.3
#define AMBI_OVER_BEZEL 2.049999
#define AMBI_OVER_BEZEL_SIZE 0.223
#define AMBI_BG_IMAGE_BLEND_MODE 1.0
#define AMBI_ADD_ON_BLACK 0.0
#define AMBI_BG_IMAGE_FORCE 1.0

//Full screen glowing
//Modulate the image zooming depending on the image luminosity.
//You can lower the effect power through the DYNZOOM_FACTOR parameter.
#define DO_DYNZOOM 1.0

//Vignette and spot
#define DO_VIGNETTE 1.0
#define V_SIZE	1.08
#define V_POWER 1.0

#define DO_SPOT	1.0
#define S_POSITION 194.0
#define S_SIZE	0.4
#define S_POWER 0.05

//Global Zoom/Offset
#define DO_GLOBAL_SHZO 0.0
#define GLOBAL_OFFX -0.001
#define GLOBAL_OFFY 0.006
#define GLOBAL_ZOOM 1.0

//Aspect Ratio
#define ASPECT_X 0.0
#define ASPECT_Y 3.0




// Developer reminder: bash script to partially convert a shader preset 
// for l in $(cat /koko/.config/retroarch/shaders/test.slangp |grep ^[A-Z] ) ; do p=$(echo $l|cut -d " " -f 1) ; v=$(echo $l | cut -d \" -f 2); echo \// #define $p $v; done

//DONT DELETE THIS LINE
