mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #13294 from hrydgard/software-side-clip
Software renderer clipper: Don't clip on the sides.
This commit is contained in:
commit
817dd33737
1 changed files with 5 additions and 4 deletions
|
@ -324,10 +324,11 @@ void ProcessTriangle(VertexData& v0, VertexData& v1, VertexData& v2, const Verte
|
|||
indices[1] = SKIP_FLAG;
|
||||
indices[2] = SKIP_FLAG;
|
||||
|
||||
POLY_CLIP(CLIP_POS_X_BIT, -1, 0, 0, 1);
|
||||
POLY_CLIP(CLIP_NEG_X_BIT, 1, 0, 0, 1);
|
||||
POLY_CLIP(CLIP_POS_Y_BIT, 0, -1, 0, 1);
|
||||
POLY_CLIP(CLIP_NEG_Y_BIT, 0, 1, 0, 1);
|
||||
// The PSP doesn't clip on the sides (so, commented out) but it does appear to have a Z clipper.
|
||||
// POLY_CLIP(CLIP_POS_X_BIT, -1, 0, 0, 1);
|
||||
// POLY_CLIP(CLIP_NEG_X_BIT, 1, 0, 0, 1);
|
||||
// POLY_CLIP(CLIP_POS_Y_BIT, 0, -1, 0, 1);
|
||||
// POLY_CLIP(CLIP_NEG_Y_BIT, 0, 1, 0, 1);
|
||||
POLY_CLIP(CLIP_POS_Z_BIT, 0, 0, 0, 1);
|
||||
POLY_CLIP(CLIP_NEG_Z_BIT, 0, 0, 1, 1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue