Finding out which primitives were drawn (front facing)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Finding out which primitives were drawn (front facing)

      I need a way to get which primitives passed the rasterizer as front facing. I want to draw a line only on the triangles of a mesh that are front facing or drawn.

      I though about the output merger stage but couldn't figure out a way of getting the sv_primitive id after the rasterizer state.

      Any ideas?
      Intel i7 3930k
      8GB Mushkin LP @ 2133 mhz
      GTX 680
      Asus Rampage IV Extreme
      Corsair 650w
    • I guess I was over thinking it the issue then... I will try this today and see if it works. because it is actually a good idea.

      If that works, maybe I can experiment a little bit with cuda and opencl, and implement it that way.
      Intel i7 3930k
      8GB Mushkin LP @ 2133 mhz
      GTX 680
      Asus Rampage IV Extreme
      Corsair 650w

      The post was edited 1 time, last by hondero ().