SGENPT-MIX - Sega Genesis Pseudo Transparency Mixer shader

Hello retrogamers,

I’ve been working on a shader to specifically process those strange vertical lines (sometimes checkerboard patterns) used in sega genesis games to produce what’s called “pseudo transparencies”.

As you know, there are already many solutions available, from ntsc composite and GTU shaders to advanced ones like gdapt/mdapt. It’s very hard to produce a perfect solution, so it’s good to have options. Each one of the solutions have its pros and cons. Some of them can degrade or blurry the image too much and others can be sharp as you want, though it may present stray pixels more easily.

Then, what’s new in SGENPT-MIX? It was firstly based on jinc shaders, then it took its own path. It performs a non-linear operation over the image and cancels those vertical lines without destructing too much the rest of the frame. I think it’s a good balancy between sharpness and overall image consistency (I define it as the seamless transition between pixel areas, from transparency to non-transparency regions). I’m still making tests, but I think the results are already good enough for a first release. So you can test and point its flaws. It’s not perfect, BTW, though I think it gives a consistent result and stray pixels are hard to spot.

It’s intended only for games that use this effect as you pay some IQ price for the transparency effect. And yet, after version 5 was released, most genesis games benefit from it. And even other platforms like arcade games that use dithering (SNK and Capcom arcade games, for example.)

Sgenpt-mix is a very fast shader and must run at 1x scale as the first pass. It’s very easy to use, for now it has only three parameters where you can choose sharpness (0.0 to 1.0), blend mode options (OFF=0.0, Pseudo Transparencies=1.0 (default) and Only Checkerboard Dithering=2.0) and Blend Level (BL), where you adjust the level of dithering/pseudo transparencies blending. After that first pass, you can add any other shader you like to upscale the image (I recommend some crt shader of your preference) to your screen size.

Unzip and put the contents inside your dithering folder.

Version 8b released:

OK, here’s Version 8b: sgenpt-mix-v8b (glsl and slang)

What’s new:

  • Added option to original ‘Both’ (it’s number 4);
  • Added a switch to turn Linear Gamma ON/OFF.

For now on, I’ll only update the first pass. Second pass will be updated when necessary only.

At level 1.0, it blends the same way as before. At level 0.0 it blends the minimum. Minimum is different from doing nothing. On reality, on minimum level it’ll blend very soft dithering (low contrast). I think that at level 0.0 the Genesis games look great even if they don’t have any dithering. I recommend using BL=0.0 for most games and for the ones with high contrast dithering, use BL=0.8~1.0.

Some screens:


Other screens:


At last, converted to slang:


This might be a real game changer.

1 Like

Looks nice with guest dr venom crt shader and reducing the sampling to get back to the core res!

I just loaded your image into the image display core and adjusted the sample multipliers to 0.5 on the mega bezel

1 Like


Just wait some minutes until I release version 2. I’ve found some ‘Eureka’ way to improve sharpness to unbelievable quality! This is really a game changing! I’m very happy with results of v2. Just wait some minutes.


Ok, it’s here in cg, glsl and slang:

Test SFA3 in FBA and tell me what you think about the transparencies!


Is there any way to download this without the extension it is trying to get me to install?

Edit: I turned my ad blocker back on and it worked

I use AdBlock, so the link appears normally here. Don’t install any extensions!

Anyway, try this other link:


Wow this really looks great, you got almost all the sharpness back! It really does create a great transparency and keeps almost 100% of the detail, it also blends most dithering in general. And all in one pass, wow you’ve outdone yourself! :exploding_head:

I haven’t played with it in motion but man this is looking killer! :star_struck:

turns this:

Into this

and even turns this monstrosity

into something reasonable


Yes, I wasn’t overreacting! I was mesmerized by the results! This is a great day! I’m very happy with the results!

CPS2 looks great now too:

In motion it’s even seamlessly!

Use Sharpness parameter in 0.0 (Soft), no need for other.


Some screens with v2:


Version 3 released:

  • 2x faster;
  • Simpler to use (only one parameter now);
  • Sharpness control more effetive.

Running Retroarch on mega drive mini:


Hey @Hyllian

This is working really well! I really enjoy the simplicity of it.

I was playing with the sharpness and I was wondering if there was a way to reduce the ringing on Sharpness 2?

Here’s some screenshots


Sharpness 1

Sharpness 2

1 Like

Use version v3 instead.

1 Like

I agree, this is a nice simple shader and works great. I’d be curious if any kid of intensity settings for the anti-dithering is possible. In @HyperspaceMadness screenshots you can see MegaMan’s eyes get blurred out. The same thing happens in Super Mario World with his eyes.

Overall this is way simpler and 99% as effective as Madapt. Nice job.


Actually these shots are from V3 :slight_smile:

I’ll release v4 soon and it will include option to just blend checkerboard dithering instead pseudo transparencies (this is only needed if the game has it). Checkerboard blend is very subtle and result in less artifacts.


There’s no Sharpness 2.0 on V3. You must be using an old preset. Just update it.

1 Like

For now, to produce transparencies from vertical lines, it’s necessary to do a harsh blend on pixels. Unfortunately some small details are captured by the algorithm. On v4 I’ll offer an option to just blend checkerboard dithering (most games only use this). And the transparency blend will only be necessary if the game need it.

1 Like