INNER CODE UNIT · C++

lineMesh

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

        auto lineMesh = obj->getComponent<LineMesh>();
        if(lineMesh) {
            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");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…