1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Make faces shading correct for all possible modes.

Skip shading for lightsources and top of the nodes.
Fixes liquid sources and flowing surfaces having different brightness.
This commit is contained in:
RealBadAngel 2014-08-10 23:43:26 +02:00
parent 587167e940
commit 5e54bf1472
2 changed files with 17 additions and 17 deletions

View file

@ -108,7 +108,7 @@ void main(void)
// Moonlight is blue
b += (day - night) / 13.0;
rg -= (day - night) / 13.0;
rg -= (day - night) / 23.0;
// Emphase blue a bit in darker places
// See C++ implementation in mapblock_mesh.cpp finalColorBlend()