Fix flipped textures for drawtype "glasslike"
authorsapier <Sapier at GMX dot net>
Wed, 16 Jul 2014 14:37:41 +0000 (16:37 +0200)
committersapier <Sapier at GMX dot net>
Wed, 16 Jul 2014 14:37:41 +0000 (16:37 +0200)
src/content_mapblock.cpp

index 9078488c26552b7bd9fa270c3b4c10c5b76f640c..9cdf426be9218ae60682d7894e234864cedced26 100644 (file)
@@ -710,10 +710,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, 0,1),
-                                       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, 1,0),
-                                       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,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),
                                };
                                
                                // Rotations in the g_6dirs format