1
2RETROARCH-CG2GLSL(6S)ystem Manager's Manual: retroarch-cg2glsRlETROARCH-CG2GLSL(6)
3
4
5

NAME

7       retroarch-cg2glsl - Shader converter.
8
9

SYNOPSIS

11       retroarch-cg2glsl [Cg file] [GLSL file output]
12
13
14       retroarch-cg2glsl [Cg directory] [GLSL directory output]
15
16

DESCRIPTION

18       retroarch-cg2glsl  converts  Cg shaders to GLSL shaders. It can convert
19       single shaders as well as whole folder structures in batch.  100%  com‐
20       patibility  is not guaranteed, but almost all shaders should work fine.
21       Cg presets (.cgp) are not converted at the moment, but converting  them
22       is  as simple as copying over the .cgp, rename it to .glslp and replace
23       references to .cg files to .glsl.
24
25
26       Requires Python 3 and cgc (nvidia-cg-toolkit) 3.1.
27
28

EXAMPLE COMMANDLINES

30       Convert a Cg shader to GLSL shader
31              retroarch-cg2glsl prog.cg(p) prog.glsl(p)
32
33
34       Convert a Cg directory to GLSL directory
35              retroarch-cg2glsl cg-dir out-xml-shader-dir
36
37
38
39RETROARCH-CG2GLSL                July 10, 2014            RETROARCH-CG2GLSL(6)
Impressum