View Full Version : Convert Shader from cg to glsl

Hunt Burton
12-23-2011, 01:50 AM
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 :-(

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

The software I want to use is this http://slowmovideo.granjow.net/


12-23-2011, 04:48 AM
There are some bitwise operations in GLSL 3.30

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