mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
refactoring
This commit is contained in:
parent
a1f9155498
commit
8e68a47712
10 changed files with 160 additions and 159 deletions
|
|
@ -73,7 +73,7 @@ bool WorldRenderer::drawChunk(size_t index, Camera* camera, Shader* shader, bool
|
|||
}
|
||||
|
||||
|
||||
void WorldRenderer::draw(World* world, Camera* camera, bool occlusion, bool devdata){
|
||||
void WorldRenderer::draw(World* world, Camera* camera, bool occlusion){
|
||||
Chunks* chunks = level->chunks;
|
||||
|
||||
vec4 skyColor(0.7f, 0.81f, 1.0f, 1.0f);
|
||||
|
|
@ -149,7 +149,7 @@ void WorldRenderer::draw(World* world, Camera* camera, bool occlusion, bool devd
|
|||
lineBatch->render();
|
||||
}
|
||||
|
||||
if (devdata) {
|
||||
if (level->player->debug) {
|
||||
linesShader->use();
|
||||
linesShader->uniformMatrix("u_projview", camera->getProjection()*camera->getView());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue