mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
Backlight setting
This commit is contained in:
parent
f45fcffaf8
commit
568c612970
9 changed files with 44 additions and 9 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "UVRegion.h"
|
||||
#include "../typedefs.h"
|
||||
#include "../voxels/voxel.h"
|
||||
#include "../settings.h"
|
||||
|
||||
class Content;
|
||||
class Mesh;
|
||||
|
|
@ -31,6 +32,7 @@ class BlocksRenderer {
|
|||
|
||||
const Block* const* blockDefsCache;
|
||||
const ContentGfxCache* const cache;
|
||||
const EngineSettings& settings;
|
||||
|
||||
void vertex(const glm::vec3& coord, float u, float v, const glm::vec4& light);
|
||||
void index(int a, int b, int c, int d, int e, int f);
|
||||
|
|
@ -70,7 +72,7 @@ class BlocksRenderer {
|
|||
glm::vec4 pickSoftLight(int x, int y, int z, const glm::ivec3& right, const glm::ivec3& up) const;
|
||||
void render(const voxel* voxels, int atlas_size);
|
||||
public:
|
||||
BlocksRenderer(size_t capacity, const Content* content, const ContentGfxCache* cache);
|
||||
BlocksRenderer(size_t capacity, const Content* content, const ContentGfxCache* cache, const EngineSettings& settings);
|
||||
virtual ~BlocksRenderer();
|
||||
|
||||
Mesh* render(const Chunk* chunk, int atlas_size, const ChunksStorage* chunks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue