mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Software transform clipping: split clipped quads like the GE, cull beyond far first
With one vertex behind the near plane, the GE splits the remaining quad from the vertex before the clipped one (gpu/probe exp43, exp44, as in SoftGPU's Clipper.cpp). The other diagonal could put a far off-screen near-plane vertex in both halves, so range culling dropped the whole triangle: the floor in #16131's box test vanished. The index generator reverses triangles to flip culling, so the batch's order is passed along. Triangles entirely beyond the far plane are now culled even when in front of the near plane, with the cull-distance epsilon, so z/w = 1.0000172 (exactly 1.0 to the GE) still counts as inside. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
03c5c4e115
commit
7c5eda25f4
6 files changed
+37
-15
No files matched your search
@@ -430,6 +430,7 @@ void DrawEngineVulkan::Flush() {
|
||||
params.allowSeparateAlphaClear = false;
|
||||
params.everUsedEqualDepth = everUsedEqualDepth_;
|
||||
params.clipInfoFlags = clipInfoFlags_;
|
||||
params.trianglesReversed = BatchTrianglesReversed();
|
||||
|
||||
// The texture needs to have been applied when running RunSoftwareTransform, however we must not have applied the sampler yet since it takes
|
||||
// result.pixelMapped as an input.
|
||||
|
||||
Reference in new issue
Block a user