Skip to content

Commit c268db7

Browse files
juhdanadZeno-
authored andcommittedJan 26, 2017
Fix after hardware node coloring (#5114)
1 parent 9f108b5 commit c268db7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

Diff for: ‎src/mapblock_mesh.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1090,10 +1090,10 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
10901090
brightness of vertices 1 and 3 differ less than
10911091
the brightness of vertices 0 and 2.
10921092
*/
1093-
if (abs(f.vertices[0].Color.getAverage()
1094-
- f.vertices[2].Color.getAverage())
1095-
> abs(f.vertices[1].Color.getAverage()
1096-
- f.vertices[3].Color.getAverage()))
1093+
if (abs(f.vertices[0].Color.getLuminance()
1094+
- f.vertices[2].Color.getLuminance())
1095+
> abs(f.vertices[1].Color.getLuminance()
1096+
- f.vertices[3].Color.getLuminance()))
10971097
indices_p = indices_alternate;
10981098

10991099
collector.append(f.tile, f.vertices, 4, indices_p, 6);

Diff for: ‎src/particles.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3232
struct ClientEvent;
3333
class ParticleManager;
3434
class ClientEnvironment;
35-
class MapNode;
36-
class ContentFeatures;
35+
struct MapNode;
36+
struct ContentFeatures;
3737

3838
class Particle : public scene::ISceneNode
3939
{

0 commit comments

Comments
 (0)
Please sign in to comment.