Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created January 22, 2015 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/a7fb4ad0ae4a3d760739 to your computer and use it in GitHub Desktop.
Save kahrl/a7fb4ad0ae4a3d760739 to your computer and use it in GitHub Desktop.
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index b84b696..ec92c50 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -764,10 +764,10 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
// The face at Z+
video::S3DVertex vertices[4] = {
- video::S3DVertex(-BS/2,-BS/2,BS/2, 0,0,0, c, 1,1),
- video::S3DVertex(BS/2,-BS/2,BS/2, 0,0,0, c, 0,1),
- video::S3DVertex(BS/2,BS/2,BS/2, 0,0,0, c, 0,0),
- video::S3DVertex(-BS/2,BS/2,BS/2, 0,0,0, c, 1,0),
+ video::S3DVertex(-BS/2,-BS/2,BS/2, 0,0,-1, c, 1,1),
+ video::S3DVertex(BS/2,-BS/2,BS/2, 0,0,-1, c, 0,1),
+ video::S3DVertex(BS/2,BS/2,BS/2, 0,0,-1, c, 0,0),
+ video::S3DVertex(-BS/2,BS/2,BS/2, 0,0,-1, c, 1,0),
};
// Rotations in the g_6dirs format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment