From: sapier Date: Wed, 16 Jul 2014 14:37:41 +0000 (+0200) Subject: Fix flipped textures for drawtype "glasslike" X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9a016a6294f289e1687b9a4655ea3f02f2208201;p=zefram%2Fminetest%2Fminetest_engine.git Fix flipped textures for drawtype "glasslike" --- diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index 9078488c..9cdf426b 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -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