vmh5
01-28-2004, 09:39 AM
I started out learning Cg but need to support Mac OS-X as well as windows. Since I've given up on NVidia's promises I'm now the process of converting everything to ARB.
The real hassle here is the parameter passing. My question is this: can I pass a single float to a fragment program? It seems the glProgramLocalParameter API expects vectors only.
BTW if you can point to some good documentation & examples for using the glxxARB vertex and fragment runtime code I'd be most happy!
The real hassle here is the parameter passing. My question is this: can I pass a single float to a fragment program? It seems the glProgramLocalParameter API expects vectors only.
BTW if you can point to some good documentation & examples for using the glxxARB vertex and fragment runtime code I'd be most happy!