diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-12 22:54:53 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-14 07:48:52 -0600 |
| commit | d2e51054b4361639d3c9ae9a69437b157f2fbf9f (patch) | |
| tree | 83dd9d88b2abcaba70b9653c18ddba40facf4035 /rtl/gfx/gfx_frag_bary.sv | |
| parent | 58d647a047e8761ad1f619173ee51dd4b65831ac (diff) | |
rtl/gfx: pass barycentric coords from fine raster to fragment shading
Diffstat (limited to 'rtl/gfx/gfx_frag_bary.sv')
| -rw-r--r-- | rtl/gfx/gfx_frag_bary.sv | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rtl/gfx/gfx_frag_bary.sv b/rtl/gfx/gfx_frag_bary.sv index 5004866..4f4f452 100644 --- a/rtl/gfx/gfx_frag_bary.sv +++ b/rtl/gfx/gfx_frag_bary.sv @@ -4,7 +4,7 @@ module gfx_frag_bary ( input logic clk, - input fixed_tri edges, + input fixed_tri bary, ws, input logic stall, @@ -19,9 +19,9 @@ module gfx_frag_bary assign b1_w1 = bs_ws[1]; assign b2_w2 = bs_ws[2]; - assign orthographic_bs[0] = edges[`EDGE_P1_TO_P2]; - assign orthographic_bs[1] = edges[`EDGE_P2_TO_P0]; - assign orthographic_bs[2] = edges[`EDGE_P0_TO_P1]; + assign orthographic_bs[0] = bary[`EDGE_P1_TO_P2]; + assign orthographic_bs[1] = bary[`EDGE_P2_TO_P0]; + assign orthographic_bs[2] = bary[`EDGE_P0_TO_P1]; genvar i; generate |
