update advanced render lighting model

This commit is contained in:
MihailRis 2026-10-05 23:15:20 +03:00
parent 09b427be1e
commit 25cee0284f
4 changed files with 26 additions and 17 deletions

View file

@ -23,6 +23,8 @@ struct UVRegion;
class BlocksRenderer final {
public:
static constexpr float DEFAULT_DIRECTIONAL_LIGHT_FACTOR = 0.3f;
BlocksRenderer(
size_t capacity,
const Block* const* blockDefs,
@ -56,6 +58,8 @@ private:
bool cancelled = false;
bool densePass = false;
bool denseRender = false;
float directionalLightFactor = 0.0f;
AABB meshAABB {};
const Chunk* chunk = nullptr;
const VoxelsRenderVolume* voxelsBuffer = nullptr;