mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 09:59:44 +00:00
update advanced render lighting model
This commit is contained in:
parent
09b427be1e
commit
25cee0284f
4 changed files with 26 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue