mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-23 18:17:44 +11:00
Change SGBA shader to output 320x240
This commit is contained in:
parent
52f1441058
commit
a5236944a1
8 changed files with 40 additions and 40 deletions
|
@ -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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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 ![]() (image error) Size: 19 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 19 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 19 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 19 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
|
@ -1,20 +1,20 @@
|
|||
shaders = "2"
|
||||
shader0 = "../../handheld/shaders/color/gba-color.slang"
|
||||
shader1 = "../shaders/imgborder-sgba.slang"
|
||||
|
||||
scale_type0 = "source"
|
||||
scale0 = "1.0000"
|
||||
filter_linear0 = "false"
|
||||
|
||||
scale_type_x1 = "absolute"
|
||||
scale_x1 = "304"
|
||||
scale_type_y1 = "absolute"
|
||||
scale_y1 = "224"
|
||||
|
||||
parameters = "box_scale;in_res_x;in_res_y"
|
||||
box_scale = "1.000000"
|
||||
in_res_x = "240.000000"
|
||||
in_res_y = "160.000000"
|
||||
|
||||
textures = "BORDER"
|
||||
BORDER = "sgba.png"
|
||||
shaders = "2"
|
||||
shader0 = "../../handheld/shaders/color/gba-color.slang"
|
||||
shader1 = "../shaders/imgborder-sgba.slang"
|
||||
|
||||
scale_type0 = "source"
|
||||
scale0 = "1.0000"
|
||||
filter_linear0 = "false"
|
||||
|
||||
scale_type_x1 = "absolute"
|
||||
scale_x1 = "320"
|
||||
scale_type_y1 = "absolute"
|
||||
scale_y1 = "240"
|
||||
|
||||
parameters = "box_scale;in_res_x;in_res_y"
|
||||
box_scale = "1.000000"
|
||||
in_res_x = "240.000000"
|
||||
in_res_y = "160.000000"
|
||||
|
||||
textures = "BORDER"
|
||||
BORDER = "sgba.png"
|
||||
|
|
Binary file not shown.
Before ![]() (image error) Size: 19 KiB After ![]() (image error) Size: 3.1 KiB ![]() ![]() |
|
@ -1,15 +1,15 @@
|
|||
shaders = "1"
|
||||
shader0 = "../shaders/imgborder-sgba.slang"
|
||||
|
||||
scale_type_x0 = "absolute"
|
||||
scale_x0 = "304"
|
||||
scale_type_y0 = "absolute"
|
||||
scale_y0 = "224"
|
||||
|
||||
parameters = "box_scale;in_res_x;in_res_y"
|
||||
box_scale = "1.000000"
|
||||
in_res_x = "240.000000"
|
||||
in_res_y = "160.000000"
|
||||
|
||||
textures = "BORDER"
|
||||
BORDER = "sgba.png"
|
||||
shaders = "1"
|
||||
shader0 = "../shaders/imgborder-sgba.slang"
|
||||
|
||||
scale_type_x0 = "absolute"
|
||||
scale_x0 = "320"
|
||||
scale_type_y0 = "absolute"
|
||||
scale_y0 = "240"
|
||||
|
||||
parameters = "box_scale;in_res_x;in_res_y"
|
||||
box_scale = "1.000000"
|
||||
in_res_x = "240.000000"
|
||||
in_res_y = "160.000000"
|
||||
|
||||
textures = "BORDER"
|
||||
BORDER = "sgba.png"
|
||||
|
|
Loading…
Add table
Reference in a new issue