Convert Shader from cg to glsl

Hi there,

I’m very new to shader programming.
I want to use a open source software which is using shaders, written in cg,
which are using some special nvidia things like a pack_2half/unpack function,
what won’t work with amd/ati cards (I’ve only a amd card).

I googled around a lot, for these functions,
and if or how they can replaced,
but I found nearly nothing about them :frowning:

Does anyone here can give me some perhaps some hints, links, etc?

The software I want to use is this


There are some bitwise operations in GLSL 3.30

and in GL 4.2,
there are also some pack operations just like in Cg