Merge pull request #40 from Monroe88/sgba2

Change SGBA shader to output 320x240
This commit is contained in:
hizzlekizzle 2016-09-10 12:13:33 -05:00 committed by GitHub
commit 7e155ce6fb
8 changed files with 40 additions and 40 deletions

View file

@ -1,5 +1,5 @@
These shader presets will allow you to apply a 304x224 Super Game Boy Advance border around a 240x160 input image from a Game Boy Advance core. 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 304x224 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. 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.
An example border is included, you can swap it out with another 302x224 Super Game Boy Advance border in png format with the center 240x160 transparent. The borders included with this shader were created by BLUEamnesiac. 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.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -1,20 +1,20 @@
shaders = "2" shaders = "2"
shader0 = "../../handheld/shaders/color/gba-color.slang" shader0 = "../../handheld/shaders/color/gba-color.slang"
shader1 = "../shaders/imgborder-sgba.slang" shader1 = "../shaders/imgborder-sgba.slang"
scale_type0 = "source" scale_type0 = "source"
scale0 = "1.0000" scale0 = "1.0000"
filter_linear0 = "false" filter_linear0 = "false"
scale_type_x1 = "absolute" scale_type_x1 = "absolute"
scale_x1 = "304" scale_x1 = "320"
scale_type_y1 = "absolute" scale_type_y1 = "absolute"
scale_y1 = "224" scale_y1 = "240"
parameters = "box_scale;in_res_x;in_res_y" parameters = "box_scale;in_res_x;in_res_y"
box_scale = "1.000000" box_scale = "1.000000"
in_res_x = "240.000000" in_res_x = "240.000000"
in_res_y = "160.000000" in_res_y = "160.000000"
textures = "BORDER" textures = "BORDER"
BORDER = "sgba.png" BORDER = "sgba.png"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -1,15 +1,15 @@
shaders = "1" shaders = "1"
shader0 = "../shaders/imgborder-sgba.slang" shader0 = "../shaders/imgborder-sgba.slang"
scale_type_x0 = "absolute" scale_type_x0 = "absolute"
scale_x0 = "304" scale_x0 = "320"
scale_type_y0 = "absolute" scale_type_y0 = "absolute"
scale_y0 = "224" scale_y0 = "240"
parameters = "box_scale;in_res_x;in_res_y" parameters = "box_scale;in_res_x;in_res_y"
box_scale = "1.000000" box_scale = "1.000000"
in_res_x = "240.000000" in_res_x = "240.000000"
in_res_y = "160.000000" in_res_y = "160.000000"
textures = "BORDER" textures = "BORDER"
BORDER = "sgba.png" BORDER = "sgba.png"