mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
improve lights
This commit is contained in:
parent
2e9b6e16a4
commit
fdeec22515
2 changed files with 4 additions and 2 deletions
|
|
@ -164,14 +164,14 @@ void WorldRenderer::setupWorldShader(
|
|||
auto inventory = player.getInventory();
|
||||
ItemStack& stack = inventory->getSlot(player.getChosenSlot());
|
||||
auto& item = indices->items.require(stack.getItemId());
|
||||
float multiplier = 0.5f;
|
||||
float multiplier = 0.75f;
|
||||
shader.uniform3f(
|
||||
"u_torchlightColor",
|
||||
item.emission[0] / 15.0f * multiplier,
|
||||
item.emission[1] / 15.0f * multiplier,
|
||||
item.emission[2] / 15.0f * multiplier
|
||||
);
|
||||
shader.uniform1f("u_torchlightDistance", 6.0f);
|
||||
shader.uniform1f("u_torchlightDistance", 8.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue