mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Refactor, shader fix
This commit is contained in:
parent
6965bbe809
commit
fbce36a05c
5 changed files with 26 additions and 17 deletions
|
|
@ -112,7 +112,8 @@ void WorldRenderer::draw(World* world, Camera* camera, Assets* assets, bool occl
|
|||
shader->uniformMatrix("u_view", camera->getView());
|
||||
shader->uniform1f("u_gamma", 1.6f);
|
||||
shader->uniform3f("u_skyLightColor", 2.2f,2.2f,2.2f);
|
||||
shader->uniform3f("u_fogColor", 0.7f,0.71f,0.73f);
|
||||
shader->uniform3f("u_fogColor", 0.7f,0.81f,1.0f);
|
||||
shader->uniform1f("u_fogFactor", 0.03f);
|
||||
shader->uniform3f("u_cameraPos", camera->position.x,camera->position.y,camera->position.z);
|
||||
texture->bind();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue