mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
update: remove LineRenderer from WorldRenderer
This commit is contained in:
parent
4d324f3090
commit
3c0f2737b6
2 changed files with 1 additions and 6 deletions
|
|
@ -52,7 +52,6 @@
|
||||||
#include "NamedSkeletons.hpp"
|
#include "NamedSkeletons.hpp"
|
||||||
#include "TextsRenderer.hpp"
|
#include "TextsRenderer.hpp"
|
||||||
#include "ChunksRenderer.hpp"
|
#include "ChunksRenderer.hpp"
|
||||||
#include "LinesRenderer.hpp"
|
|
||||||
#include "DebugLinesRenderer.hpp"
|
#include "DebugLinesRenderer.hpp"
|
||||||
#include "ModelBatch.hpp"
|
#include "ModelBatch.hpp"
|
||||||
#include "Skybox.hpp"
|
#include "Skybox.hpp"
|
||||||
|
|
@ -117,7 +116,6 @@ WorldRenderer::WorldRenderer(
|
||||||
hands = std::make_unique<HandsRenderer>(
|
hands = std::make_unique<HandsRenderer>(
|
||||||
*assets, *modelBatch, skeletons->createSkeleton("hand", &skeletonConfig)
|
*assets, *modelBatch, skeletons->createSkeleton("hand", &skeletonConfig)
|
||||||
);
|
);
|
||||||
lines = std::make_unique<LinesRenderer>();
|
|
||||||
shadowMapping = std::make_unique<Shadows>(level);
|
shadowMapping = std::make_unique<Shadows>(level);
|
||||||
debugLines = std::make_unique<DebugLinesRenderer>(level);
|
debugLines = std::make_unique<DebugLinesRenderer>(level);
|
||||||
}
|
}
|
||||||
|
|
@ -386,11 +384,10 @@ void WorldRenderer::renderFrame(
|
||||||
linesShader.use();
|
linesShader.use();
|
||||||
if (debug && hudVisible) {
|
if (debug && hudVisible) {
|
||||||
debugLines->render(
|
debugLines->render(
|
||||||
ctx, camera, *lines, *lineBatch, linesShader, showChunkBorders
|
ctx, camera, *lineBatch, linesShader, showChunkBorders
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
linesShader.uniformMatrix("u_projview", projView);
|
linesShader.uniformMatrix("u_projview", projView);
|
||||||
lines->draw(*lineBatch);
|
|
||||||
lineBatch->flush();
|
lineBatch->flush();
|
||||||
|
|
||||||
// Translucent blocks
|
// Translucent blocks
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ class BlockWrapsRenderer;
|
||||||
class PrecipitationRenderer;
|
class PrecipitationRenderer;
|
||||||
class HandsRenderer;
|
class HandsRenderer;
|
||||||
class NamedSkeletons;
|
class NamedSkeletons;
|
||||||
class LinesRenderer;
|
|
||||||
class TextsRenderer;
|
class TextsRenderer;
|
||||||
class Shader;
|
class Shader;
|
||||||
class Frustum;
|
class Frustum;
|
||||||
|
|
@ -104,7 +103,6 @@ public:
|
||||||
std::unique_ptr<BlockWrapsRenderer> blockWraps;
|
std::unique_ptr<BlockWrapsRenderer> blockWraps;
|
||||||
std::unique_ptr<PrecipitationRenderer> precipitation;
|
std::unique_ptr<PrecipitationRenderer> precipitation;
|
||||||
std::unique_ptr<NamedSkeletons> skeletons;
|
std::unique_ptr<NamedSkeletons> skeletons;
|
||||||
std::unique_ptr<LinesRenderer> lines;
|
|
||||||
|
|
||||||
static bool showChunkBorders;
|
static bool showChunkBorders;
|
||||||
static bool showEntitiesDebug;
|
static bool showEntitiesDebug;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue