[cg] clip planes
how do i set clip planes with cg
the standard gl clip planes dont work with programmability it seems.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement