// // Created by Wouter Groeneveld on 11/07/20. // #include #include void PixelRenderer::render(const MatrixFx &transformationMatrix, const MatrixFx &worldView, const Mesh* mesh) { for (auto &vertex : mesh->vertices()) { auto coords = vertex.get()->coords(); auto projectedPoint = engine->project(coords, transformationMatrix); engine->plotPixel(projectedPoint, mesh->colorIndex()); } }