Is it possible to use some kind of pk2h/pk4ub/etc… like instructions under GLSL on NVidia cards? I’m working on a deferred shading algorithm and I’ve used the NV_fragment_program extension until now. I found a short description of the EXT_Cg_shader extension, but it only says that we can use the Cg standard library functions in a GLSL program.
Yes, all of the Cg stdlib functions are exposed in the NVIDIA GLSL implementation. Just call the unpack functions the same way you would in a Cg shader.
It seems that NVIDIA GLSL compiler does not recognize pack/unpack functions anymore. As a result, my programs fail to start on GF8800 with 97.xx drivers. Is it a bug or intended behaviour?