Update SGB/SGBA/GBP tvout presets

This commit is contained in:
Monroe88 2018-04-15 16:29:01 -05:00
parent 540fa91c62
commit 337f7a7b94
11 changed files with 269 additions and 217 deletions

View file

@ -1,6 +1,10 @@
These shader presets will allow you to apply a 608x448 Game Boy Player border around a 240x160 input image from a Game Boy Advance core, with the input being scaled 2x to fit the border.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy Advance core's reported resolution of 240x160 into account, and not the output image's 608x448 resolution. You will need to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy Advance core's reported resolution of 240x160 into account, and not the output image's 608x448 resolution.
One option to display it integer scaled is to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
The other option is to use one of the auto-box shaders in the last pass of the shader chain to integer scale or center the output of the border shader within the viewport. You may need to disable RetroArch's Integer Scaling and set the Aspect Ratio equal to your screen aspect ratio to see the whole image.
An example border is included, you can swap it out with another 608x448 Game Boy Player border in png format with the center 240x160 transparent. The borders included with this shader were ripped from a Game Boy Player disc by a kind anonymous user and were edited to appear correct with a GBA image fully shown.

View file

@ -1,29 +1,32 @@
shaders = "4"
shader0 = "../shaders/imgborder-gbp.slang"
shader1 = "../../crt/shaders/tvout-tweaks.slang"
shader2 = "../../misc/image-adjustment.slang"
shader3 = "../../misc/interlacing.slang"
shaders = 5
shader0 = ../shaders/imgborder-gbp.slang
shader1 = ../../crt/shaders/tvout-tweaks.slang
shader2 = ../../misc/image-adjustment.slang
shader3 = ../../misc/interlacing.slang
shader4 = ../../auto-box/box-center.slang
scale_type_x0 = "absolute"
scale_x0 = "608"
scale_type_y0 = "absolute"
scale_y0 = "448"
scale_type_x0 = absolute
scale_x0 = 608
scale_type_y0 = absolute
scale_y0 = 448
scale_type_x1 = "viewport"
scale_x1 = "1.000000"
scale_type_y1 = "source"
scale_y1 = "1.000000"
scale_type_x1 = viewport
scale_x1 = 1.000000
scale_type_y1 = source
scale_y1 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS;enable_480i;top_field_first"
box_scale = "2.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "512.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "1.000000"
enable_480i = "0.000000"
top_field_first = "1.000000"
filter_linear4 = false
textures = "BORDER"
BORDER = "gameboy-player.png"
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS;enable_480i;top_field_first
box_scale = 2.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 512.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 1.000000
enable_480i = 0.000000
top_field_first = 1.000000
textures = BORDER
BORDER = gameboy-player.png

View file

@ -1,33 +1,39 @@
shaders = "5"
shader0 = "../../handheld/shaders/color/gba-color.slang"
shader1 = "../shaders/imgborder-gbp.slang"
shader2 = "../../crt/shaders/tvout-tweaks.slang"
shader3 = "../../misc/image-adjustment.slang"
shader4 = "../../misc/interlacing.slang"
shaders = 6
shader0 = ../../handheld/shaders/color/gba-color.slang
shader1 = ../shaders/imgborder-gbp.slang
shader2 = ../../crt/shaders/tvout-tweaks.slang
shader3 = ../../misc/image-adjustment.slang
shader4 = ../../misc/interlacing.slang
shader5 = ../../auto-box/box-center.slang
scale_type0 = "source"
scale0 = "1.0"
scale_type0 = source
scale0 = 1.0
scale_type_x1 = "absolute"
scale_x1 = "608"
scale_type_y1 = "absolute"
scale_y1 = "448"
scale_type_x1 = absolute
scale_x1 = 608
scale_type_y1 = absolute
scale_y1 = 448
scale_type_x2 = "viewport"
scale_x2 = "1.000000"
scale_type_y2 = "source"
scale_y2 = "1.000000"
scale_type_x2 = viewport
scale_x2 = 1.000000
scale_type_y2 = source
scale_y2 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS;enable_480i;top_field_first"
box_scale = "2.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "512.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "0.000000"
enable_480i = "0.000000"
top_field_first = "1.000000"
scale_type_y4 = source
scale_y4 = 1.000000
textures = "BORDER"
BORDER = "gameboy-player.png"
filter_linear5 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS;enable_480i;top_field_first
box_scale = 2.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 512.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 0.000000
enable_480i = 1.000000
top_field_first = 1.000000
textures = BORDER
BORDER = gameboy-player.png

View file

@ -1,30 +1,33 @@
shaders = "4"
shader0 = "../../handheld/shaders/color/gba-color.slang"
shader1 = "../shaders/imgborder-gbp.slang"
shader2 = "../../crt/shaders/tvout-tweaks.slang"
shader3 = "../../misc/image-adjustment.slang"
shaders = 5
shader0 = ../../handheld/shaders/color/gba-color.slang
shader1 = ../shaders/imgborder-gbp.slang
shader2 = ../../crt/shaders/tvout-tweaks.slang
shader3 = ../../misc/image-adjustment.slang
shader4 = ../../auto-box/box-center.slang
scale_type0 = "source"
scale0 = "1.0"
scale_type0 = source
scale0 = 1.0
scale_type_x1 = "absolute"
scale_x1 = "608"
scale_type_y1 = "absolute"
scale_y1 = "448"
scale_type_x1 = absolute
scale_x1 = 608
scale_type_y1 = absolute
scale_y1 = 448
scale_type_x2 = "viewport"
scale_x2 = "1.000000"
scale_type_y2 = "source"
scale_y2 = "1.000000"
scale_type_x2 = viewport
scale_x2 = 1.000000
scale_type_y2 = source
scale_y2 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "2.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "512.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "0.000000"
filter_linear4 = false
textures = "BORDER"
BORDER = "gameboy-player.png"
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 2.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 512.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 0.000000
textures = BORDER
BORDER = gameboy-player.png

View file

@ -1,26 +1,30 @@
shaders = "3"
shader0 = "../shaders/imgborder-gbp.slang"
shader1 = "../../crt/shaders/tvout-tweaks.slang"
shader2 = "../../misc/image-adjustment.slang"
shaders = 4
shader0 = ../shaders/imgborder-gbp.slang
shader1 = ../../crt/shaders/tvout-tweaks.slang
shader2 = ../../misc/image-adjustment.slang
shader3 = ../../auto-box/box-center.slang
scale_type_x0 = "absolute"
scale_x0 = "608"
scale_type_y0 = "absolute"
scale_y0 = "448"
scale_type_x1 = "viewport"
scale_x1 = "1.000000"
scale_type_y1 = "source"
scale_y1 = "1.000000"
scale_type_x0 = absolute
scale_x0 = 608
scale_type_y0 = absolute
scale_y0 = 448
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "2.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "480.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "0.000000"
scale_type_x1 = viewport
scale_x1 = 1.000000
scale_type_y1 = source
scale_y1 = 1.000000
textures = "BORDER"
BORDER = "gameboy-player.png"
filter_linear3 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 2.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 480.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 0.000000
textures = BORDER
BORDER = gameboy-player.png

View file

@ -1,5 +1,9 @@
These shader presets will allow you to apply a 256x224 Super Game Boy border around a 160x144 input image from a Game Boy core.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy core's reported resolution of 160x144 into account, and not the output image's 256x224 resolution. You will need to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy core's reported resolution of 160x144 into account, and not the output image's 256x224 resolution.
One option to display it integer scaled is to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
The other option is to use one of the auto-box shaders in the last pass of the shader chain to integer scale or center the output of the border shader within the viewport. You may need to disable RetroArch's Integer Scaling and set the Aspect Ratio equal to your screen aspect ratio to see the whole image.
An example border is included, you can swap it out with another 256x224 Super Game Boy border in png format with the center 160x144 transparent. Borders derived from an emulator screenshot may be shifted up one pixel and off center, so you would need to shift it down one pixel to center it. The "Super Game Boy Color" borders were created by BLUEamnesiac.

View file

@ -1,32 +1,38 @@
shaders = "5"
shader0 = "../../handheld/shaders/color/gbc-color.slang"
shader1 = "../shaders/imgborder-sgb.slang"
shader2 = "../../crt/shaders/tvout-tweaks.slang"
shader3 = "../../misc/image-adjustment.slang"
shader4 = "../../misc/interlacing.slang"
shaders = 6
shader0 = ../../handheld/shaders/color/gbc-color.slang
shader1 = ../shaders/imgborder-sgb.slang
shader2 = ../../crt/shaders/tvout-tweaks.slang
shader3 = ../../misc/image-adjustment.slang
shader4 = ../../misc/interlacing.slang
shader5 = ../../auto-box/box-center.slang
filter_linear0 = false
scale_type_0 = source
scale0 = 1.0
scale_type_x1 = "absolute"
scale_x1 = "256"
scale_type_y1 = "absolute"
scale_y1 = "224"
scale_type_x1 = absolute
scale_x1 = 256
scale_type_y1 = absolute
scale_y1 = 224
scale_type_x2 = "viewport"
scale_x2 = "1.000000"
scale_type_y2 = "source"
scale_y2 = "1.000000"
scale_type_x2 = viewport
scale_x2 = 1.000000
scale_type_y2 = source
scale_y2 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "1.000000"
location = "0.500000"
in_res_x = "160.000000"
in_res_y = "144.000000"
TVOUT_RESOLUTION = "320.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "0.000000"
scale_type_y4 = source
scale_y4 = 2.000000
textures = "BORDER"
BORDER = "sgb.png"
filter_linear5 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 1.000000
location = 0.500000
in_res_x = 160.000000
in_res_y = 144.000000
TVOUT_RESOLUTION = 320.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 0.000000
textures = BORDER
BORDER = sgb.png

View file

@ -1,27 +1,33 @@
shaders = "4"
shader0 = "../shaders/imgborder-sgb.slang"
shader1 = "../../crt/shaders/tvout-tweaks.slang"
shader2 = "../../misc/image-adjustment.slang"
shader3 = "../../misc/interlacing.slang"
shaders = 5
shader0 = ../shaders/imgborder-sgb.slang
shader1 = ../../crt/shaders/tvout-tweaks.slang
shader2 = ../../misc/image-adjustment.slang
shader3 = ../../misc/interlacing.slang
shader4 = ../../auto-box/box-center.slang
scale_type_x0 = "absolute"
scale_x0 = "256"
scale_type_y0 = "absolute"
scale_y0 = "224"
scale_type_x0 = absolute
scale_x0 = 256
scale_type_y0 = absolute
scale_y0 = 224
scale_type_x1 = "viewport"
scale_x1 = "1.000000"
scale_type_y1 = "source"
scale_y1 = "1.000000"
scale_type_x1 = viewport
scale_x1 = 1.000000
scale_type_y1 = source
scale_y1 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "1.000000"
location = "0.500000"
in_res_x = "160.000000"
in_res_y = "144.000000"
TVOUT_RESOLUTION = "320.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "0.000000"
scale_type_y3 = source
scale_y3 = 2.000000
textures = "BORDER"
BORDER = "sgb.png"
filter_linear4 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 1.000000
location = 0.500000
in_res_x = 160.000000
in_res_y = 144.000000
TVOUT_RESOLUTION = 320.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 0.000000
textures = BORDER
BORDER = sgb.png

View file

@ -1,5 +1,9 @@
These shader presets will allow you to apply a 320x240 Super Game Boy Advance border around a 240x160 input image from a Game Boy Advance core.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy Advance core's reported resolution of 240x160 into account, and not the output image's 320x240 resolution. You will need to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
Please note that RetroArch's integer scaling function will not automatically set a correct integer scale for the output image, as it will only take the Game Boy Advance core's reported resolution of 240x160 into account, and not the output image's 320x240 resolution.
One option to display it integer scaled is to set a custom viewport size, either with the Custom Ratio menu option or defining custom_viewport_width and custom_viewport_height in the config file, setting Aspect Ratio Index to "Custom", and enabling Integer Scaling to center the image automatically.
The other option is to use one of the auto-box shaders in the last pass of the shader chain to integer scale or center the output of the border shader within the viewport. You may need to disable RetroArch's Integer Scaling and set the Aspect Ratio equal to your screen aspect ratio to see the whole image.
An example border is included, you can swap it out with another 320x240 Super Game Boy Advance border in png format with the center 240x160 transparent. The borders included with this shader were created by EndUser based on a concept by BLUEamnesiac.

View file

@ -1,27 +1,33 @@
shaders = "4"
shader0 = "../shaders/imgborder-sgba.slang"
shader1 = "../../crt/shaders/tvout-tweaks.slang"
shader2 = "../../misc/image-adjustment.slang"
shader3 = "../../misc/interlacing.slang"
shaders = 5
shader0 = ../shaders/imgborder-sgba.slang
shader1 = ../../crt/shaders/tvout-tweaks.slang
shader2 = ../../misc/image-adjustment.slang
shader3 = ../../misc/interlacing.slang
shader4 = ../../auto-box/box-center.slang
scale_type_x0 = "absolute"
scale_x0 = "320"
scale_type_y0 = "absolute"
scale_y0 = "240"
scale_type_x0 = absolute
scale_x0 = 320
scale_type_y0 = absolute
scale_y0 = 240
scale_type_x1 = "viewport"
scale_x1 = "1.000000"
scale_type_y1 = "source"
scale_y1 = "1.000000"
scale_type_x1 = viewport
scale_x1 = 1.000000
scale_type_y1 = source
scale_y1 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "1.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "512.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "1.000000"
scale_type_y3 = source
scale_y3 = 2.000000
textures = "BORDER"
BORDER = "sgba.png"
filter_linear4 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 1.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 512.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 1.000000
textures = BORDER
BORDER = sgba.png

View file

@ -1,31 +1,37 @@
shaders = "5"
shader0 = "../../handheld/shaders/color/gba-color.slang"
shader1 = "../shaders/imgborder-sgba.slang"
shader2 = "../../crt/shaders/tvout-tweaks.slang"
shader3 = "../../misc/image-adjustment.slang"
shader4 = "../../misc/interlacing.slang"
shaders = 6
shader0 = ../../handheld/shaders/color/gba-color.slang
shader1 = ../shaders/imgborder-sgba.slang
shader2 = ../../crt/shaders/tvout-tweaks.slang
shader3 = ../../misc/image-adjustment.slang
shader4 = ../../misc/interlacing.slang
shader5 = ../../auto-box/box-center.slang
scale_type0 = "source"
scale0 = "1.0"
scale_type0 = source
scale0 = 1.0
scale_type_x1 = "absolute"
scale_x1 = "320"
scale_type_y1 = "absolute"
scale_y1 = "240"
scale_type_x1 = absolute
scale_x1 = 320
scale_type_y1 = absolute
scale_y1 = 240
scale_type_x2 = "viewport"
scale_x2 = "1.000000"
scale_type_y2 = "source"
scale_y2 = "1.000000"
scale_type_x2 = viewport
scale_x2 = 1.000000
scale_type_y2 = source
scale_y2 = 1.000000
parameters = "box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS"
box_scale = "1.000000"
location = "0.500000"
in_res_x = "240.000000"
in_res_y = "160.000000"
TVOUT_RESOLUTION = "512.000000"
TVOUT_COMPOSITE_CONNECTION = "0.000000"
TVOUT_TV_COLOR_LEVELS = "1.000000"
scale_type_y4 = source
scale_y4 = 2.000000
textures = "BORDER"
BORDER = "sgba.png"
filter_linear5 = false
parameters = box_scale;location;in_res_x;in_res_y;TVOUT_RESOLUTION;TVOUT_COMPOSITE_CONNECTION;TVOUT_TV_COLOR_LEVELS
box_scale = 1.000000
location = 0.500000
in_res_x = 240.000000
in_res_y = 160.000000
TVOUT_RESOLUTION = 512.000000
TVOUT_COMPOSITE_CONNECTION = 0.000000
TVOUT_TV_COLOR_LEVELS = 1.000000
textures = BORDER
BORDER = sgba.png