diff options
author | lhofhansl <lhofhansl@yahoo.com> | 2018-08-08 17:53:06 +0400 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-08-08 15:53:06 +0200 |
commit | 3a95d760e97d16fcc499aee8df1be4fe583c8168 (patch) | |
tree | 31bc2609883e4347902be29ad80ff5c57efdf59c /src/mapblock_mesh.h | |
parent | 8d68b2cd210fea3cd852c648464c8bdd9cac02a7 (diff) | |
download | minetest-3a95d760e97d16fcc499aee8df1be4fe583c8168.tar.gz minetest-3a95d760e97d16fcc499aee8df1be4fe583c8168.tar.bz2 minetest-3a95d760e97d16fcc499aee8df1be4fe583c8168.zip |
Some minor Fastface optimizations. (#7628)
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index 39bc2f318..6af23a656 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -189,7 +189,7 @@ video::SColor encode_light(u16 light, u8 emissive_light); // Compute light at node u16 getInteriorLight(MapNode n, s32 increment, const NodeDefManager *ndef); -u16 getFaceLight(MapNode n, MapNode n2, v3s16 face_dir, +u16 getFaceLight(MapNode n, MapNode n2, const v3s16 &face_dir, const NodeDefManager *ndef); u16 getSmoothLightSolid(const v3s16 &p, const v3s16 &face_dir, const v3s16 &corner, MeshMakeData *data); u16 getSmoothLightTransparent(const v3s16 &p, const v3s16 &corner, MeshMakeData *data); @@ -224,5 +224,5 @@ void final_color_blend(video::SColor *result, // Adds MATERIAL_FLAG_CRACK if the node is cracked // TileSpec should be passed as reference due to the underlying TileFrame and its vector // TileFrame vector copy cost very much to client -void getNodeTileN(MapNode mn, v3s16 p, u8 tileindex, MeshMakeData *data, TileSpec &tile); -void getNodeTile(MapNode mn, v3s16 p, v3s16 dir, MeshMakeData *data, TileSpec &tile); +void getNodeTileN(MapNode mn, const v3s16 &p, u8 tileindex, MeshMakeData *data, TileSpec &tile); +void getNodeTile(MapNode mn, const v3s16 &p, const v3s16 &dir, MeshMakeData *data, TileSpec &tile); |