AvCol
01-20-2011, 03:32 PM
Hi everyone,
I am wondering if there is any quick access to information on whether or not a fragment is the back or front face of a polygon from within the pixel shader?
I suspect that there isn't and that something like culling happens in the primitive assembly stage.
Could I get face information by calculating a cross product per primitive in the geometry shader, and then pass it to the pixel shader as an out?
Any advice would be much appreciated.
I am wondering if there is any quick access to information on whether or not a fragment is the back or front face of a polygon from within the pixel shader?
I suspect that there isn't and that something like culling happens in the primitive assembly stage.
Could I get face information by calculating a cross product per primitive in the geometry shader, and then pass it to the pixel shader as an out?
Any advice would be much appreciated.