mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Refactor
This commit is contained in:
parent
e2bb7a34aa
commit
9760cff8f4
10 changed files with 76 additions and 85 deletions
|
|
@ -168,7 +168,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera){
|
|||
shader->uniform3f("u_cameraPos", camera->position);
|
||||
shader->uniform1i("u_cubemap", 1);
|
||||
{
|
||||
blockid_t id = level->player->chosenItem;
|
||||
blockid_t id = level->player->getChosenItem();
|
||||
Block* block = contentIds->getBlockDef(id);
|
||||
assert(block != nullptr);
|
||||
float multiplier = 0.5f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue