[cg] clip planes

Started by
3 comments, last by EvilDecl81 18 years, 3 months ago
how do i set clip planes with cg the standard gl clip planes dont work with programmability it seems.
Advertisement
In GLSL, user clip planes need te be set up through user-defined uniforms, they are not passed as built-in uniforms.
so you pass in your plane to your shader ow ever you want, but its the clipping part i dont know how to do.
Quote:Original post by supagu
so you pass in your plane to your shader ow ever you want, but its the clipping part i dont know how to do.



I imagine its the same as in HLSL, look at the clip() intrinsic.
EvilDecl81
Quote:Original post by supagu
so you pass in your plane to your shader ow ever you want, but its the clipping part i dont know how to do.



I imagine its the same as in HLSL, look at the clip() intrinsic.
EvilDecl81

This topic is closed to new replies.

Advertisement