forked from Mirrorlandia_minetest/minetest
Use fabs() instead of abs() (#5141)
This commit is contained in:
parent
f0e3abc64d
commit
6642c8583a
@ -1090,9 +1090,9 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
|
|||||||
brightness of vertices 1 and 3 differ less than
|
brightness of vertices 1 and 3 differ less than
|
||||||
the brightness of vertices 0 and 2.
|
the brightness of vertices 0 and 2.
|
||||||
*/
|
*/
|
||||||
if (abs(f.vertices[0].Color.getLuminance()
|
if (fabs(f.vertices[0].Color.getLuminance()
|
||||||
- f.vertices[2].Color.getLuminance())
|
- f.vertices[2].Color.getLuminance())
|
||||||
> abs(f.vertices[1].Color.getLuminance()
|
> fabs(f.vertices[1].Color.getLuminance()
|
||||||
- f.vertices[3].Color.getLuminance()))
|
- f.vertices[3].Color.getLuminance()))
|
||||||
indices_p = indices_alternate;
|
indices_p = indices_alternate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user