User Clip Planes with Cg

Started by
-1 comments, last by HippyNerd 18 years, 10 months ago
Hey Guys, I've been porting my code from GLSL to CG. I'm wondering if there is straight forward support for user clip planes within Cg. I.e I know if I use the arbvp1 profile I can access clip planes, using something along the lines of glState.clip[x]. However I'll probably be using vp20 profile etc. I can pass the clip planes in as uniforms perform some dot products etc, but I'm sure there must be an easier way. (I've found googling for "Cg" a lot less effective than "GLSL". Since most hits turn up the CG tutorial book released by nvidia, or other sites related to the usual "cg" term.) thanks

This topic is closed to new replies.

Advertisement