update: remove LineRenderer from WorldRenderer

This commit is contained in:
alexei-zebra 2025-12-21 01:29:35 +03:00
parent 4d324f3090
commit 3c0f2737b6
2 changed files with 1 additions and 6 deletions

View file

@ -52,7 +52,6 @@
#include "NamedSkeletons.hpp"
#include "TextsRenderer.hpp"
#include "ChunksRenderer.hpp"
#include "LinesRenderer.hpp"
#include "DebugLinesRenderer.hpp"
#include "ModelBatch.hpp"
#include "Skybox.hpp"
@ -117,7 +116,6 @@ WorldRenderer::WorldRenderer(
hands = std::make_unique<HandsRenderer>(
*assets, *modelBatch, skeletons->createSkeleton("hand", &skeletonConfig)
);
lines = std::make_unique<LinesRenderer>();
shadowMapping = std::make_unique<Shadows>(level);
debugLines = std::make_unique<DebugLinesRenderer>(level);
}
@ -386,11 +384,10 @@ void WorldRenderer::renderFrame(
linesShader.use();
if (debug && hudVisible) {
debugLines->render(
ctx, camera, *lines, *lineBatch, linesShader, showChunkBorders
ctx, camera, *lineBatch, linesShader, showChunkBorders
);
}
linesShader.uniformMatrix("u_projview", projView);
lines->draw(*lineBatch);
lineBatch->flush();
// Translucent blocks

View file

@ -22,7 +22,6 @@ class BlockWrapsRenderer;
class PrecipitationRenderer;
class HandsRenderer;
class NamedSkeletons;
class LinesRenderer;
class TextsRenderer;
class Shader;
class Frustum;
@ -104,7 +103,6 @@ public:
std::unique_ptr<BlockWrapsRenderer> blockWraps;
std::unique_ptr<PrecipitationRenderer> precipitation;
std::unique_ptr<NamedSkeletons> skeletons;
std::unique_ptr<LinesRenderer> lines;
static bool showChunkBorders;
static bool showEntitiesDebug;