Oh, and I just logged into the forum to post the Cg to GLSL converter that I hacked up yesterday. I’ll post it later today.
FWIW there is no such thing as “a computer that does not support Cg”. Every computer that supports shaders supports Cg. You mean that your build Panda3D was compiled without the Cg Runtime enabled?
The NVIDIA Cg Runtime is capable of transpiling Cg to HLSL and GLSL (which is in practice often what happens in Panda3D - except for more basic shaders, which are translated to ARB assembly language instead, which is more widely supported and compiles faster). The conversion script I wrote basically invokes the Cg runtime to transpile to GLSL and remaps the inputs so that it they can be recognized by Panda’s GLSL module.