INNER CODE UNIT · C++

projectedLines

vectozavr/3dzavr · engine/Engine.cpp:47

            auto projectedLines = camera->project(*lineMesh);
            for(const auto& projectedLine: projectedLines) {
                _projectedLines.emplace_back(projectedLine, lineMesh->getColor());
            }
        }

        auto lightSource = obj->getComponent<LightSource>();
        if(lightSource) {
            _lightSources.emplace_back(lightSource);
        }
    }
}

void Engine::drawProjectedTriangles() {

    Time::startTimer("d sort triangles");
    std::sort(_projectedTranspTriangles.begin(), _projectedTranspTriangles.end(), [](const auto& e1, const auto& e2){
        const auto& [projT1, t1, material1] = e1;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…