slang-shaders/border/sgb
hunterk 7f34fc7469
clean up blurs directory (#307)
* clean up blurs

* fix some paths and prune some dead presets

* fix ntsc path
2022-09-26 12:18:44 -05:00
..
sample-borders Losslessly compress LUTs 2022-04-16 18:56:18 +10:00
README.md Convert these README files to markdown 2018-04-15 16:38:30 -05:00
sgb+crt-easymode.slangp Update SGB-style border presets 2018-03-19 20:00:57 -05:00
sgb-crt-geom-1x.slangp Update SGB-style border presets 2018-03-19 20:00:57 -05:00
sgb-crt-royale.slangp clean up blurs directory (#307) 2022-09-26 12:18:44 -05:00
sgb-gbc-color-tvout+interlacing.slangp correct some broken paths 2022-09-23 23:09:50 -05:00
sgb-gbc-color.slangp replace invalid scale_type_<number> with scale_type<number> 2019-05-28 22:35:49 +02:00
sgb-tvout+interlacing.slangp correct some broken paths 2022-09-23 23:09:50 -05:00
sgb.png Losslessly compress LUTs 2022-04-16 18:56:18 +10:00
sgb.slangp (border) Add SGB, Gameboy-Player, and faux-SGBA border shaders 2016-08-14 13:41:41 -05:00

Super Game Boy border shader

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.

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.