Has anyone converted crt-geom-flat from cg to glsl? It was my favorite shader but it is no longer supported by retroarch because it is cg format.
Thanks!
Has anyone converted crt-geom-flat from cg to glsl? It was my favorite shader but it is no longer supported by retroarch because it is cg format.
Thanks!
The Cg version of crt-geom can be made flat using the runtime parameters, which is why we got rid of the old ones. However, the cg2glsl script we use for conversion fails to copy over the parameters to the glsl versions, so I’ve hand-converted a few, including crt-geom:
To make it flat, just go into the preview parameters, turn off curvature and make the cornersize very small. Once you find some settings you like, change them in the menu parameters and it will create a preset for you that will always have those values (you’ll load it with ‘load shader preset’).
First of all edit the cg shader with the changes you want and save. When editing the cg file looks for the settings that start with…
‘#define’. Changing ‘#define CURVATURE 1.0’ to ‘#define CURVATURE 0.0’
and save.
Then…
[QUOTE=hunterk;28168] To make it flat, just go into the preview parameters, turn off curvature and make the cornersize very small. Once you find some settings you like, change them in the menu parameters and it will create a preset for you that will always have those values (you’ll load it with ‘load shader preset’).[/QUOTE]
Thanks for the info, the crt-geom.glsl is preloaded with retroarch on my android nvidia shield portable. Issue is, when I load the shader and then go to preview shader parameters, it says “No shader parameters” It does this with every shader I have tried.
[QUOTE=hunterk;28168]However, the cg2glsl script we use for conversion fails to copy over the parameters to the glsl versions, so I’ve hand-converted a few, including crt-geom: https://github.com/hizzlekizzle/glsl-shaders/blob/master/crt/shaders/crt-geom.glsl[/QUOTE] The one that’s preloaded doesn’t have the parameters because our script can’t copy them over properly, so I converted one by hand that does. Try it and see if it treats you any better.
crt-geom-flat was also my favorite shader but I’m not technically inclined. I’ve read the messages above but I’ve had no success. Not sure what I’m doing wrong.
Can someone post the converted crt-geom-flat in glsl?
This would be greatly appreciated.
@Konno.Sting Download this file: https://raw.githubusercontent.com/hizzlekizzle/glsl-shaders/master/crt/shaders/crt-geom.glsl Then, load the shader like you normally would, go back into the quick men > shader options > preview parameters and change the ‘curvature toggle’ to 0.0.
If you want to make it permanent, you can either create a custom glslp using the ‘menu parameters’ option or you can open the shader with a text editor and hardcode 0.0 to the default, like this (change line #4): #pragma parameter CURVATURE “CRTGeom Curvature Toggle” 0.0 0.0 1.0 1.0
Thanks,
I’ll give it a go.