Skip to content

Commit

Permalink
update some blocks lighting params
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 26, 2025
1 parent fc6629f commit 84f39dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/graphics/render/BlocksRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "lighting/Lightmap.hpp"
#include "frontend/ContentGfxCache.hpp"

const glm::vec3 BlocksRenderer::SUN_VECTOR (0.411934f, 0.863868f, -0.279161f);
const glm::vec3 BlocksRenderer::SUN_VECTOR (0.2275f,0.9388f,-0.1005f);

BlocksRenderer::BlocksRenderer(
size_t capacity,
Expand Down Expand Up @@ -129,7 +129,7 @@ void BlocksRenderer::faceAO(
float s = 0.5f;
if (lights) {
float d = glm::dot(glm::normalize(Z), SUN_VECTOR);
d = 0.8f + d * 0.2f;
d = 0.7f + d * 0.3f;

auto axisX = glm::normalize(X);
auto axisY = glm::normalize(Y);
Expand Down Expand Up @@ -167,7 +167,7 @@ void BlocksRenderer::face(
float s = 0.5f;
if (lights) {
float d = glm::dot(glm::normalize(Z), SUN_VECTOR);
d = 0.8f + d * 0.2f;
d = 0.7f + d * 0.3f;
tint *= d;
}
vertex(coord + (-X - Y + Z) * s, region.u1, region.v1, tint);
Expand Down

0 comments on commit 84f39dd

Please sign in to comment.