Skip to content

Instantly share code, notes, and snippets.

@Monroe88
Monroe88 / color-inversion.glsl
Last active Mar 5, 2018
Color Inversion GLSL shader
View color-inversion.glsl
/*
Color inversion shader
*/
#if defined(VERTEX)
#if __VERSION__ >= 130
#define COMPAT_VARYING out
#define COMPAT_ATTRIBUTE in
#define COMPAT_TEXTURE texture
View input-lag.cg
/*
Input Lag shader
*/
struct previous
{
uniform sampler2D texture;
float2 tex_coord;
};
@Monroe88
Monroe88 / Twin_USB_Joystick_(Analog).cfg
Created Feb 15, 2017
Autoconfig profile for "HDE PS PS2 USB Dual Controller to PC Adapter", for RetroArch XInput driver. This mapping is for analog mode.
View Twin_USB_Joystick_(Analog).cfg
input_driver = "xinput"
input_device = "Twin USB Joystick"
input_vendor_id = "2064"
input_product_id = "1"
input_b_btn = "2"
input_y_btn = "3"
input_select_btn = "8"
input_start_btn = "9"
input_up_btn = "h0up"
input_down_btn = "h0down"
@Monroe88
Monroe88 / Twin_USB_Joystick_(Digital).cfg
Last active Feb 15, 2017
Autoconfig profile for "HDE PS PS2 USB Dual Controller to PC Adapter", for RetroArch XInput driver. This mapping is for digital mode.
View Twin_USB_Joystick_(Digital).cfg
input_driver = "xinput"
input_device = "Twin USB Joystick"
input_vendor_id = "2064"
input_product_id = "1"
input_b_btn = "2"
input_y_btn = "3"
input_select_btn = "8"
input_start_btn = "9"
input_up_axis = "-1"
input_down_axis = "+1"
@Monroe88
Monroe88 / keyboard.cfg
Last active Aug 12, 2021
RetroArch keyboard mapping template
View keyboard.cfg
## RetroArch keybind config template
## Can be copypasted into an existing config, appended with --apppendconfig, used as a core or game override, or used with the include directive in an existing config
# Keyboard input. Will recognize letters (a to z) and the following special keys (where kp_
# is for keypad keys):
#
# left, right, up, down, enter, kp_enter, tab, insert, del, end, home,
# rshift, shift, ctrl, alt, space, escape, add, subtract, kp_plus, kp_minus,
# f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12,
# num0, num1, num2, num3, num4, num5, num6, num7, num8, num9, pageup, pagedown,
@Monroe88
Monroe88 / crt-royale+8stock.cgp
Created Jan 17, 2016
CRT Royale Cg shader preset with 8 "blank" stock shader passes.
View crt-royale+8stock.cgp
# IMPORTANT:
# Shader passes need to know details about the image in the mask_texture LUT
# files, so set the following constants in user-cgp-constants.h accordingly:
# 1.) mask_triads_per_tile = (number of horizontal triads in mask texture LUT's)
# 2.) mask_texture_small_size = (texture size of mask*texture_small LUT's)
# 3.) mask_texture_large_size = (texture size of mask*texture_large LUT's)
# 4.) mask_grille_avg_color = (avg. brightness of mask_grille_texture* LUT's, in [0, 1])
# 5.) mask_slot_avg_color = (avg. brightness of mask_slot_texture* LUT's, in [0, 1])
# 6.) mask_shadow_avg_color = (avg. brightness of mask_shadow_texture* LUT's, in [0, 1])
# Shader passes also need to know certain scales set in this .cgp, but their
@Monroe88
Monroe88 / CRT resolution override.cfg
Last active Jan 5, 2018
Override config for setting CRT resolutions per-core or per-game in RetroArch
View CRT resolution override.cfg
## Override config for setting CRT resolutions per core or per game.
## Place this in $rgui_config_directory/[Core Name]/[Core Name].cfg or $rgui_config_directory/[Core Name]/[Content Filename].cfg to have it loaded automatically when override loading is enabled
## e.g $rgui_config_directory/MAME/mslug.cfg or $rgui_config_directory/Mednafen PSX/Mednafen PSX.cfg
# Fullscreen resolution. Resolution of 0 uses the resolution of the desktop.
# Note, you must create the modeline in your OS video driver settings for this to work.
video_fullscreen_x = 3840
video_fullscreen_y = 480
# Refresh rate of the resolution mode.
@Monroe88
Monroe88 / MAME.cfg
Last active Jan 3, 2016
Override config for MAME libretro keyboard mapping in RetroArch
View MAME.cfg
## Keyboard input override for MAME-libretro
## place this in $rgui_config_directory/MAME/MAME.cfg (for the Git version of MAME) to have it loaded automatically when override loading is enabled
## Also applicable to any core that makes use of RetroKeyboard extensively.
# Remove all RetroPad keyboard mappings to avoid conflicts with MAME keyboard mappings
# Note: you will need a joypad or mouse to navigate RetroArch's menu with these disabled.
input_player1_a = "nul"
input_player1_b = "nul"
input_player1_y = "nul"
input_player1_x = "nul"
@Monroe88
Monroe88 / fullscreen CRT template.cfg
Last active Mar 6, 2018
RetroArch fullscreen video mode config template
View fullscreen CRT template.cfg
## Fullscreen video mode config template for RetroArch.
## Can be appended on top of an existing config or used by itself.
## Note: This config will not overwrite by default to preserve comments. To enable saving changes from the menu, set config_save_on_exit to true.
# Fullscreen resolution. Resolution of 0 uses the resolution of the desktop.
# Note, you must create the modeline in your OS video driver settings for this to work.
video_fullscreen_x = 3840
video_fullscreen_y = 480
# Refresh rate of the resolution mode.