Is this possible? Any way I can have both cgwg flat and a hq anti aliasing shader?
Retroarch for PC and PS3 runs even eight combined shaders!
@arokh As Hyllian said, yes, it’s possible and there are two main ways to do it (they ultimately have the same outcome). You can either do it through RGUI’s (the green overlay menu that comes up when you hit F1) video options > shader options, then set the shader passes to a nonzero number. That will make some options appear where you can enter your shader passes in order, along with a scale, if desired. Once you’re setup, hit ‘Apply Shader Changes’ and you should be set.
The other option is to manually create a shader preset file (cgp) that contains that information already, which you then load by using RGUI’s ‘Load Shader Preset’ option (same location in RGUI as the first method). You can use this one as an example of the kinds of options the cgp files will accept: https://github.com/libretro/common-shaders/blob/master/handheld/gameboy/gb-shader.cgp
Ultimately, they do the same thing, except in the first method, RGUI creates the cgp for you.
Some shaders only like specific scale factors (HQ2x, for example, works best at … 2x), so you may have to play around with it until you find settings that looks good.
I’d like to automate the setting so cgp seems the way to go. Which options are necessary, can I just do the following?
shaders = 2 shader0 = shader1.cg shader1= shader2.cg
Also, can I specify .glsl or does it need to be .cg? Does the order matter?
Yeah, that minimal info should get you going but you might need to tweak some of the other options to get the exact effect you want. You should be able to use glsl, but that requires your cgp to be a glslp instead, and I don’t think you can mix and match shader types. That is, cgp requires all cg files while glslp requires all glsl files.
It worked! Not so great results though Anyone got a cgwg flat + hq combo that looks good?
Try this shader: https://github.com/libretro/common-shaders/blob/master/xbr/5xbr-v3.7c-plus-crt.cg
Maybe it is what you’re loooking for. (one tip, use it at 5x scale.)
I’m not having good luck with it either. The best outcome just likes like the normal cgwg-flat. I think I understand what you’re going for, though, and one of the xBR+CRT all-in-one variants might be to your liking.