mirror of
https://github.com/minetest/minetest.git
synced 2024-12-04 13:33:44 +01:00
Shaders: Fix comment line (#7668)
Fixed comment as finalColorBlend() does not exist in the code base.
This commit is contained in:
parent
7e21cec55b
commit
1c4c0d4673
@ -135,7 +135,7 @@ float disp_z;
|
|||||||
color.a = 1;
|
color.a = 1;
|
||||||
|
|
||||||
// Emphase blue a bit in darker places
|
// Emphase blue a bit in darker places
|
||||||
// See C++ implementation in mapblock_mesh.cpp finalColorBlend()
|
// See C++ implementation in mapblock_mesh.cpp final_color_blend()
|
||||||
float brightness = (color.r + color.g + color.b) / 3;
|
float brightness = (color.r + color.g + color.b) / 3;
|
||||||
color.b += max(0.0, 0.021 - abs(0.2 * brightness - 0.021) +
|
color.b += max(0.0, 0.021 - abs(0.2 * brightness - 0.021) +
|
||||||
0.07 * brightness);
|
0.07 * brightness);
|
||||||
|
Loading…
Reference in New Issue
Block a user