RetroArch – Introducing the Mega Bezel Reflection Shader

Article written by HyperSpaceMadness



RetroArch keeps introducing innovations to the retrogaming world, constantly building simple roads for players to enjoy classic games in new and sometimes better ways.

Getting the sweet spot between ease of use and customization can be a time-consuming process, and sometimes requires a deep insight of how old technologies worked: refresh rate, aspect ratio, scaling, overscan, deconvergence are terms which we may or may not be familiar with, and these all play an important part in building a retro gaming experience that feels better, yet passionately authentic.

How do we get a handle on this?

Building an idealized CRT (cathode ray tube) like display experience. Getting the best out of post-processing with the latest CRT shaders fused into a “one stop” solution. Making it incredibly easy to customize, and yet performant. A fresh and unique starting point for the retro game lover.

Console branded tv by Soqueroeu, great for playing on a big screen in the living room
Console branded tv by Soqueroeu, great for playing on a big screen in the living room

The Mega Bezel Project started back in July 2019 when developer HyperspaceMadness was looking at experimental shaders creating real-time reflections on emulated display bezels. More than two years later, the swiss-army-knife of visual simulation to enhance the retro game experience is ready for players!

Sonic with a Blended Waterfall, Genesis Preset and graphics by Duimon
Sonic with a Blended Waterfall, Genesis Preset and graphics by Duimon

The Mega Bezel is unique in that it bends the common definitions of shaders and overlays in an out-of-the-box experience: custom calculations take care of games native resolution and scaling, dynamically draw bezels around the gameplay area filled with curvature simulation and reflections, incorporating a unique pipeline of CRT simulation models and other visual conditioning of the game image, color correction, de-dithering, and adding responsive backgrounds and lots of additional features to enjoy.

The shader centralizes a lot of complex tasks and makes them instantly available for all cores: screen rotation and position, horizontal and vertical orientation, zooming, cutting away games black spaces to get a real full-screen, and filling the aspect ratio difference between the emulated screen and your monitor with interesting graphics. Mega Bezel even adds original solutions, like the ‘Night Mode’ to simulate a dimly lit room and ‘Glass Mode’ for a modern and dynamic way to fill the entire monitor.

Mega Man 8 with the Glass Preset, good for filling the screen, avoiding any worries of OLED burn-in
Mega Man 8 with the Glass Preset, good for filling the screen, avoiding any worries of OLED burn-in

Being based on contributions and discussions from the Libretro forums, Mega Bezel is a community project at its heart: shader writers and artists are actively developing features and customized presets which max out the shader capabilities, and making them freely available for retro players to enjoy and further customize, chasing the their ideal setup.

3DS Preset by Duimon with alternate layout and custom graphics
3DS Preset by Duimon with alternate layout and custom graphics

Easy to use for newcomers, deep in customization for emulation maniacs, flexible for artists: the Mega Bezel project is a fun ongoing journey that strives to bring wonderful features to everyone, minus the hassle of setup!

Game Boy Advance LCD Preset & Graphics by Duimon
Game Boy Advance LCD Preset & Graphics by Duimon

You can get the basic Mega Bezel shaders inside RetroArch by running Online Updater -> Update Slang Shaders then the shaders will be located inside shaders/shaders_slang/bezel/Mega_Bezel/Presets. Be sure to read the setup portion of the ReadMe.md to help you get started you can find it in the Mega_Bezel folder just mentioned.

A small group of talented artists has also come together using the Mega Bezel to create suites of shader presets with beautiful graphics covering many consoles, computers and PVMs to share with retro gamers.

If this sounds exciting head over to the Mega Bezel thread on the Libretro forum to find more about the Mega Bezel, and links to the artist’s pages and shader preset collections.

https://forums.libretro.com/t/hsm-mega-bezel-reflection-shader-feedback-and-updates/25512

Below are more examples of the Mega Bezel and artwork from the community.

OutRun preset and graphics by Orion's Angel
OutRun preset and graphics by Orion’s Angel
Star Wars with a lovely JVC PVM from TheNamec!
Star Wars with a lovely JVC PVM from TheNamec!
Garou: Mark of the Wolves with Smoothed Preset
Garou: Mark of the Wolves with Smoothed Preset
REZ with Dreamcast core upscaling with shader downscaling and cyberpunk style by TheNamec
REZ with Dreamcast core upscaling with shader downscaling and cyberpunk style by TheNamec
Monkey Island with some smoothing and deconvergence magic
Monkey Island with some smoothing and deconvergence magic
The Great Gianna Sisters with a preset and graphics by TheNamec
The Great Gianna Sisters with a preset and graphics by TheNamec
Tron's Deadly Discs showing supports for the game Image on top of backdrop
Tron’s Deadly Discs showing supports for the game Image on top of backdrop
Choplifter with the Glass preset and some scaling
Choplifter with the Glass preset and some scaling
Resolution info can be printed to the screen so you can see what resolutions are used
Resolution info can be printed to the screen so you can see what resolutions are used
Shadowgate on Macintosh with graphics by Duimon
Shadowgate on Macintosh with graphics by Duimon
Monochrome Amber mode applied
Monochrome Amber mode applied
Vib Ribbon on PS1 with color added and a nice PVM from TheNamec
Vib Ribbon on PS1 with color added and a nice PVM from TheNamec

RetroArch now on Windows Package Manager!

Windows 10/11 users now have an even more convenient way of installing RetroArch! RetroArch is now available from the Windows Package Manager (see here).

  • Stables are identical to the ones found on our website/buildbot.
  • They are digitally signed, meaning they pass the Windows Defender SmartScreen Protection. You will not get a warning from SmartScreen when attempting to install RetroArch this way. Useful if you are in a protected environment where your system administrator has locked down your ability to install unsigned third-party applications on your system.

The video will show you how to install it.

First, start up the Command Prompt. You can go the Start Menu and type in ‘Command Prompt’ and then click on it to start it up, or simultaneously press Windows key + R key, and then type in ‘cmd’.

How to search for RetroArch

Once on the command line, you can search for packages to see if they exist. To search for RetroArch, tyep in the following:

winget search RetroArch

Lowercase ‘retroarch’ will work as well. An entry should show up.

How to install RetroArch

Now that we know the package exists on the package manager, we should be able to install this. Simply type on the commandline:

winget install RetroArch

It will now install RetroArch without requiring any user interaction. Note that this version of RetroArch will not attempt to install the DirectX9 SDK in case it doesn’t already exist. We assume on modern Windows you will use the Direct3D 10/11/12 or Vulkan/OpenGL drivers anyway.

Once installed, you should be able to find it from the Start Menu as a recently added application.

How to uninstall RetroArch

Uninstalling RetroArch once installed is similarly easy. Simply type the following on the commandline:

winget uninstall RetroArch

RetroArch’s presence on app stores

Our aim with RetroArch is to be available on as many storefronts and outlets as possible. We have made some impressive progress over the years.

  • RetroArch is available on Steam for Windows and SteamOS/Linux (see here).
  • RetroArch is available on the Windows Package Manager for Windows 10/11 (see here).
  • RetroArch is available on the Google Play Store for regular Android devices (see here). A Plus version with additional features is also available here.
  • RetroArch is available on the Huawei AppGallery for Huawei branded Android devices (see here).
  • RetroArch is available on the Samsung Galaxy Store for Samsung branded Android devices (see here).
  • RetroArch is available on the Amazon App Store for Amazon branded Android devices (see here).
  • RetroArch is available on itch.io (see here).
  • RetroArch is available on Canonical Snapcraft (see here).
  • RetroArch is available on Flathub (see here).
  • RetroArch has a Humble Bundle page (see here).
  • We have even more plans to expand that we cannot talk about yet!