mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Software renderer clipper: Don't clip on the sides. Fixes #4845 and should fix #7124 for the SW renderer.
This commit is contained in:
parent
20eef073b4
commit
2e06386cf6
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