Uborder shaders
Latest release: Uborder-v0.0.6
– Added some crt shaders to be compatible with uborder-bezel-reflections:
- dot and lcd-grid-v2 for handhelds;
- crt-guest-advanced;
- crt-guest-advanced-hd;
- crt-guest-advanced-ntsc;
– Old reflection was a bit anemic. New code is stronger;
– Added integer scaling to uborder-bezel-reflections.
What’s this?
It’s a simple and fast alternative to more complex bezel shaders like Mega Bezel or Koko-aio.
Why?
I really appreciate the features offered by Mega Bezel and, more recently, by Koko-aio shaders. Being complex shaders, they tend to require a powerful machine to run. This made me wonder if it might be possible to create something simpler that could still provide some of their impressive features, like reflections, in a fast way. As a result, I came up with this first release.
How to use it?
- Update your Retroarch shaders online to get a vanilla version of uborder inside ‘shaders_slang’;
- On Retroarch, choose ‘FULL’ aspect ratio;
- In Quick Menu, choose Core Options->Vertical Mode an turn OFF, so that vertical games will rotate correctly.
- Enjoy.
For now, there are four types of presets you can load:
- ambient-light-crt.slangp
- uborder.slangp
- uborder-reflections.slangp
- uborder-bezel-reflections.slangp
Some compatible content-shaders:
- crt-nobody (default)
- crt-geom (get content_shaders_pack to have it.)
crt-nobody is a modified version to support interlaced signal (test psx games like SH or Tekken3 and you’ll see how it behaves). To use crt-geom, edit the main presets ‘ambient-light-crt.slangp’, ‘uborder.slangp’ or ‘uborder-reflections.slangp’, commenting the crt-nobody line and uncommenting the crt-geom line. Doing that, all presets will load the correct crt shader. I’ll probably add other known shaders in the future. Other crt shaders may be included in the latest pack.
Optional: to use extra shaders and presets, download uborder_packs here: some extra packs.
Can I prepend shaders to it?
YES! Some great shaders can be prepended to this one. I have tested ntsc-adaptive and it worked prepended out of the box! Though by doing this you’re adding a layer of complexity and may slow the results.
Can I use my own background?
YES! It’s called Uborder for a reason, it’s easy to add your own background.
To add your own background, create a folder inside ‘shaders/uborder_packs’ Retroarch directory, similar to the ‘Spooky TVs’ folder. Copy the ‘Spooky.slangp’ file into your folder and rename it as desired. Within the preset file, update the BORDER texture to reference your background image. Then, run the preset and use the user parameters in Retroarch to adjust the frame and reflections to fit your image. Once done, save it as a simple preset and copy the parameters back into your preset file to ensure it loads correctly next time.
Optional packs compatibility
There are several packs of overlays/borders made by the community through the years to work with several different emulators. Most of them are compatible with Retroarch overlay and shaders framework (most are made for Mega Bezel).
Uborder is a fast alternative to mimic some of the features of Mega Bezel and Koko-aio. And as this, uborder is easy to be integrated with available packs of overlays. The way packs are delivered, they may be separated between the overlay itself (the image file, png or jpg) and the presets/shaders/configs that load them as planned.
In the case of packs already made to be compatible with Megal Bezel and/or Koko-aio, most packs are hundreds of MB or even GB in size. In order to save space, I decided that uborder won’t demand a copy of the images into another folder. So, if you have some of the packs already installed to work with Mega Bezel or Koko-aio, you won’t need to redownload those packs, you just need the uborder presets that point to them.
So, to get the Uborder Presets that point to community packs, you found them inside ‘shaders/uborder_packs’ Retroarch root directory.
If you don’t have the packs already installed, get them in these places:
Orionsangel-Original-Console pack: Orionsangel-Original-Console pack
Duimon-Mega-Bezel-Potato pack: Duimon-Mega-Bezel-Potato
“Hgoda90 - OrionsAngel’s Overlay + Preset Packs - Candy Cab” (Mega Bezel edition) pack: Hgoda’s thread
These Community Packs only work if they’re installed here: ‘shaders/Mega_Bezel_Packs/’
For ‘retropie-overlays-arcade-artwork’, you should get the overlays from: https://github.com/cosmo0/retropie-overlays-arcade-artwork (Download it zipped), and unzip them in this folder: ‘Retroarch/overlays’, so that the final path where the pngs are located is here: ‘Retroarch/overlays/retropie-overlays-arcade-artwork/overlays/config/’
Screenshots:
Some pictures from the arcade games using the auto preset:
Credits to @Duimon for the awesome available overlay packs.
Credits to Orionsangel for the permission to point the presets to his overlays.
Credits to @hgoda90 for his works on Orionsangel’s Candy Cab presets for Mega Bezel.
Credits to TreyM for the default background image: https://github.com/TreyM/classic-crt-collection/tree/master/CRT
Thanks to guest.r for his g-sharp2_resamplers and crt-guest-advanced shaders.
Thanks to hunterk for the image border and ambilight shader codes.
Thanks to HyperspaceMadness and kokoko3k for their awesome shaders that inspired me to work on this one.
And, since the beginning, thanks to cgwg, maister and DOLLS for the original curvature code.
And to all libretro shader coders and overlay artists, of course!
Feedbacks are welcomed!