aboutsummaryrefslogtreecommitdiff
path: root/GPU3D_Soft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GPU3D_Soft.cpp')
-rw-r--r--GPU3D_Soft.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/GPU3D_Soft.cpp b/GPU3D_Soft.cpp
index c7bb2c0..4549d4d 100644
--- a/GPU3D_Soft.cpp
+++ b/GPU3D_Soft.cpp
@@ -333,6 +333,8 @@ void RenderPolygon(Polygon* polygon)
perspfactor2 = 0;
}
+ //z = 0x1000000 / (perspfactor1 + perspfactor2);
+
// possible optimization: only do color interpolation if the depth test passes
u32 vr = ((perspfactor1 * rl) + (perspfactor2 * rr)) / (perspfactor1 + perspfactor2);
u32 vg = ((perspfactor1 * gl) + (perspfactor2 * gr)) / (perspfactor1 + perspfactor2);