alice icon indicating copy to clipboard operation
alice copied to clipboard

Add correct bias to triangle drawing

Open lkesteloot opened this issue 7 years ago • 1 comments

The fpgasim code computes a bias for each edge, in order to guarantee that pixels aren't ever drawn twice. We don't do that in the FPGA code. See whether we need to, then add it. (It's pretty simple I think.)

lkesteloot avatar May 01 '17 07:05 lkesteloot

This probably is only important when drawing with blending, which we don't support. Otherwise pixels from a second triangle sharing an edge with a first triangle will just replace the first triangle's pixels or be discarded, depending on their Z value. That's my take on it.

bradgrantham avatar May 01 '17 17:05 bradgrantham