mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
fix lighting settings based chunk meshes rebuilding
This commit is contained in:
parent
482f6d4a18
commit
c641a18d32
2 changed files with 19 additions and 2 deletions
|
|
@ -696,7 +696,8 @@ SortingMeshData BlocksRenderer::renderTranslucent(
|
|||
void BlocksRenderer::build(
|
||||
const Chunk* chunk, const VoxelsRenderVolume& volume
|
||||
) {
|
||||
directionalLightFactor = settings.graphics.shadowsQuality.get() > 0.0f
|
||||
directionalLightFactor = settings.graphics.shadowsQuality.get() > 0 &&
|
||||
settings.graphics.advancedRender.get()
|
||||
? 0.0f
|
||||
: DEFAULT_DIRECTIONAL_LIGHT_FACTOR;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue