MAMEWorld Central >> EmuChat
View all threads Index   Flat Mode Flat  

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 120
Send PM
Re: Converting CG and GLSL shader types to BGFX??
08/01/16 02:56 AM


> How difficult is it to convert existing CG or GLSL based shaders (RetroArch) to BGFX
> format?, I have noticed that the 'crt-geom' shader has now been converted to BGFX for
> mame and wonder if 'crt-easymode-halation' could also be converted over to BGFX?. Its
> probably one of the best CRT shaders out and can product awesome results.....

BGFX shaders in MAME can do a lot of the same stuff as Retroarch shaders as far as multiple passes, and editable parameters and so on.

Looking at 'crt-easymode-halation' I'd guess that it would be a couple of hours to get working. The shader is longish but doesn't seem to be doing anything crazy. It's more a question whether anybody wants to spend the time porting it.

For example, I'm building a little bartop arcade cab that will use a 1280x1024 LCD monitor and a small PC with intel graphics. I won't spend the time right now to port 'crt-easymode-halation' because it probably won't run full speed on that PC and the scanlines look sharp enough that there will be aliasing at low resolutions. So it's not a fit for the hardware I'm working with.

Meanwhile, MAME's hlsl shader can be tweaked to look pretty much however you want assuming you have enough horsepower to run it. So there's not much motivation for me to port another CRT shader over.

And MooglyGuy, the dude that write the hlsl shader and ported over all the non-'crt-geom' shaders is doing regular emu stuff at the moment, so he probably won't do it any time soon. There are other people that could do it. Jezze could, and others too. But who knows if they will.

That shader does look very good though.







Entire thread
Subject Posted by Posted on
* Converting CG and GLSL shader types to BGFX?? lettuce 07/31/16 03:12 PM
. * Re: Converting CG and GLSL shader types to BGFX?? SoltanGris42  08/04/16 02:33 AM
. * Re: Converting CG and GLSL shader types to BGFX?? Jezze  08/04/16 10:23 PM
. * Re: Converting CG and GLSL shader types to BGFX?? B2K24  03/17/17 07:50 AM
. * Early partially broken test version of crt-easymode-halation SoltanGris42  08/03/16 10:22 AM
. * Re: Converting CG and GLSL shader types to BGFX?? MooglyGuy  08/02/16 11:11 AM
. * Re: Converting CG and GLSL shader types to BGFX?? lettuce  08/01/16 10:05 PM
. * Re: Converting CG and GLSL shader types to BGFX?? SoltanGris42  08/01/16 02:56 AM
. * Aye. That is awful pre-tty. (nt) Traso  08/02/16 10:03 PM

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
1 registered and 38 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1567