fix clipper to handle output of 10 verts, instead of 8
This commit is contained in:
parent
ab20fa00ca
commit
959d551b34
|
@ -257,9 +257,10 @@ struct VIEWPORT {
|
||||||
void decode(u32 v);
|
void decode(u32 v);
|
||||||
};
|
};
|
||||||
|
|
||||||
//The worst case we've managed to think of so far would be a viewport zoomed in a little bit
|
//ok, imagine the plane that cuts diagonally across a cube such that it clips
|
||||||
//on a diamond, with cut-out bits in all four corners
|
//out to be a hexagon. within that plane, draw a quad such that it cuts off
|
||||||
#define MAX_CLIPPED_VERTS 8
|
//four corners of the hexagon, and you will observe a decagon
|
||||||
|
#define MAX_CLIPPED_VERTS 10
|
||||||
|
|
||||||
class GFX3D_Clipper
|
class GFX3D_Clipper
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue