> 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.
|