mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Fog fix
This commit is contained in:
parent
4de2d77150
commit
4d9e43bf03
2 changed files with 11 additions and 2 deletions
|
|
@ -86,6 +86,7 @@ void Skybox::refresh(float t, float mie, uint quality) {
|
|||
|
||||
shader->uniform1i("u_quality", quality);
|
||||
shader->uniform1f("u_mie", mie);
|
||||
shader->uniform1f("u_fog", mie);
|
||||
shader->uniform3f("u_lightDir", glm::normalize(vec3(sin(t), -cos(t), -0.7f)));
|
||||
for (uint face = 0; face < 6; face++) {
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, cubemap, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue