Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

Hey, just sharing a quick tutorial because, I spent a few hours making this work.

Basically I'm using Retroarch for most of my emulators and shaders. Especially the koko-aio crt shaders that are in my opinion the most immersive and realistic.

image.thumb.png.b8e37fa39387d642279653b9586052e9.png

The issue is that some consoles doesn't have a retroarch core yet making it impossible to add shaders.

Fortunately someone called mausimus created an open-source app, ShaderGlass, which overlays any glsl or slang shaders on top of pretty much anything.

Sounds fun, but it doesn't work as simply as you'd want. Here's how I made it work :

1. First you need a working Xemu emulator configurated.

2. Now let's modify some Xemu parameters :

First, under Display tab, you need to disable fullscreen and fullscreen on startup :

image.thumb.png.5c3b38d60eb143bb1d74bd40c0d4e5f2.png

A little further down the page you'll want to set the display mode to Stretch and set the aspect ratio on Native :

image.thumb.png.380ce3d3042673789bf32d12a0935dce.png

3. Now you'll want to install the latest stable version of ShaderGlass from their official GitHub :

https://github.com/mausimus/ShaderGlass/releases

You can then import any missing RetroArch shaders like the missing koko-aio that are fullscreen :

image.png.a5481dcf4cdcfa52a196e57a8b0daeca.png

Set the input mode to Clone :

image.thumb.png.950e76e940a1d0ca71ab528057ceb991.png

Save your setup as a custom profile, call it something like xemu.sgp :

image.thumb.png.be9df50e35b255391708a7515e684fbe.png

4. Now in Launchbox modify your Xemu emulator and remove the -fullscreen flag in the command-line parameters.

Should be looking like this now :

image.png.608f45b544c23404b909aefd745f2521.png

5. Now, still in LaunchBox's Xemu emulator options, replace the Running Script by (update paths accordingly) :

WinWait, ahk_exe xemu.exe
WinWaitActive, ahk_exe xemu.exe
Run, D:\LaunchBox\ThirdParty\ShaderGlass\ShaderGlass.exe -f D:\LaunchBox\ThirdParty\ShaderGlass\presets\xemu.sgp
Sleep, 1000
WinActivate, ahk_exe xemu.exe
WinWaitActive, ahk_exe xemu.exe
WinWaitClose, ahk_exe xemu.exe
WinClose, ahk_exe ShaderGlass.exe

Basically what it does is simply :

  • Wait for Xemu emulator to be ready
  • Run ShaderGlass fullscreen with your profile
  • Give back the focus to Xemu so that your controller works
  • When Xemu end, exit ShaderGlass

You would think it's done but unfortunately you still require borderless gaming to get Xemu fullscreen without being actually fullscreen. Otherwise your shader will clip on both sides and look like this :

image.thumb.png.b2f002a8adf08be0f2a0a32f07267caf.png

6. Install the legacy open source version of Borderless Gaming which is still working great up to this day on Windows 11 :

https://legacy.borderlessgam.ing

7. Add Xemu to your Favorites which means it's going to fullscreen window the app automatically :

image.thumb.png.3dc7b8a7b9d10993a71b755f07585c5a.png

8. Check Run on Startup under Options dropdown.

Now everything is automated and working!

You might wonder why I'm not using ResizeRaccoon which does the same thing?

I tested it and it's working if you're not using BigBox as Windows shell instead of explorer.exe. In my case I'm shelling bigbox.exe so Resize Raccoon doesn't work because it's a system tray only app. It would be great if the dev fix this but I don't have time right now to raise an issue on their Github. It would be best in the future because it's open source compared to borderless gaming which is now paid.

By the way this is working perfectly in BigBox.

Enjoy!

  • Like 1
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...