MH-Flight-Simulator-X / FPGA-src

The source files for the FPGA system, written in SystemVerilog
GNU Lesser General Public License v2.1
2 stars 0 forks source link

Implement clipping #20

Closed MortenSorensenNOR closed 2 weeks ago

MortenSorensenNOR commented 2 weeks ago

A module that does clipping in clip-space is needed to ensure that triangles are within the view frustum.

A vertex is within the view frustum (or camera frustum) if

For now it is sufficient to only disregard triangles that include vertexes with z values not contained within the view frustum (i.e. 0 < z < w).