mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
BlocksRenderer pseudo-lights update
This commit is contained in:
parent
2e98aa39d9
commit
af2786164a
1 changed files with 2 additions and 2 deletions
|
|
@ -126,9 +126,9 @@ void BlocksRenderer::face(const ivec3& coord,
|
|||
return;
|
||||
}
|
||||
|
||||
const vec3 sunVector = vec3(0.431934f, 0.863868f, 0.259161f);
|
||||
const vec3 sunVector = vec3(0.411934f, 0.863868f, 0.279161f);
|
||||
float d = glm::dot(vec3(axisZ.x, axisZ.y, axisZ.z), sunVector);
|
||||
d = 0.75f + d*0.25f;
|
||||
d = 0.7f + d*0.3f;
|
||||
|
||||
vec4 tint(d);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue