fix: reverted optimization
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user