Skip to content

Commit

Permalink
Shaders: Fix comment line (#7668)
Browse files Browse the repository at this point in the history
Fixed comment as finalColorBlend() does not exist in the code base.
  • Loading branch information
crazyBaboon authored and SmallJoker committed Aug 30, 2018
1 parent 7e21cec commit 1c4c0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/shaders/nodes_shader/opengl_vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ float disp_z;
color.a = 1;

// 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;
color.b += max(0.0, 0.021 - abs(0.2 * brightness - 0.021) +
0.07 * brightness);
Expand Down

0 comments on commit 1c4c0d4

Please sign in to comment.