fix: reverted optimization
This commit is contained in:
@@ -85,12 +85,11 @@ class Renderer {
|
||||
for (int x = startX; x < endX; x++) {
|
||||
for (int y = startY; y < endY; y++) {
|
||||
|
||||
testP.calcBarycentric(pos);
|
||||
|
||||
if (testP.contains(pos)) {
|
||||
if (testP.depContains(pos)) {
|
||||
if (testP.small)
|
||||
continue;
|
||||
|
||||
testP.calcBarycentric(pos);
|
||||
decimal depth = testP.calcDepth();
|
||||
if (depth < target->getDepth(x, y)) {
|
||||
// std::cout << factors << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user