fix: reverted optimization

This commit is contained in:
2025-12-23 11:30:08 +01:00
parent f4ba9b3df3
commit 8fffe4d8e3

View File

@@ -85,12 +85,11 @@ class Renderer {
for (int x = startX; x < endX; x++) { for (int x = startX; x < endX; x++) {
for (int y = startY; y < endY; y++) { for (int y = startY; y < endY; y++) {
testP.calcBarycentric(pos); if (testP.depContains(pos)) {
if (testP.contains(pos)) {
if (testP.small) if (testP.small)
continue; continue;
testP.calcBarycentric(pos);
decimal depth = testP.calcDepth(); decimal depth = testP.calcDepth();
if (depth < target->getDepth(x, y)) { if (depth < target->getDepth(x, y)) {
// std::cout << factors << std::endl; // std::cout << factors << std::endl;