mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
trackbar track-width semantic update + gamma setting trackbar
This commit is contained in:
parent
b1a79e3a6e
commit
8be0d157c2
11 changed files with 30 additions and 26 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "../../voxels/ChunksStorage.h"
|
||||
#include "../../lighting/Lightmap.h"
|
||||
#include "../../frontend/ContentGfxCache.h"
|
||||
#include "../../settings.h"
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
|
|
@ -23,7 +24,7 @@ BlocksRenderer::BlocksRenderer(
|
|||
size_t capacity,
|
||||
const Content* content,
|
||||
const ContentGfxCache* cache,
|
||||
const EngineSettings& settings
|
||||
const EngineSettings* settings
|
||||
) : content(content),
|
||||
vertexOffset(0),
|
||||
indexOffset(0),
|
||||
|
|
@ -448,7 +449,7 @@ void BlocksRenderer::render(const voxel* voxels) {
|
|||
void BlocksRenderer::build(const Chunk* chunk, const ChunksStorage* chunks) {
|
||||
this->chunk = chunk;
|
||||
voxelsBuffer->setPosition(chunk->x * CHUNK_W - 1, 0, chunk->z * CHUNK_D - 1);
|
||||
chunks->getVoxels(voxelsBuffer, settings.graphics.backlight.get());
|
||||
chunks->getVoxels(voxelsBuffer, settings->graphics.backlight.get());
|
||||
overflow = false;
|
||||
vertexOffset = 0;
|
||||
indexOffset = indexSize = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue