diff Render.cpp @ 1424:5930342f092b

fall to the water
author Ritor1
date Tue, 30 Jul 2013 15:14:46 +0600
parents 3881d2f94eb1
children 1987f2cca08f
line wrap: on
line diff
--- a/Render.cpp	Tue Jul 30 09:34:14 2013 +0600
+++ b/Render.cpp	Tue Jul 30 15:14:46 2013 +0600
@@ -315,7 +315,7 @@
 
 //shading (затенение)----------------------------------------------------------------------------
       //uint norm_idx = pTerrainNormalIndices[2 * (z * 128 + x) + 1];
-      uint norm_idx = pTerrainNormalIndices[2 * (x * 128 + z) + 1];//есть несовпадение в 1 кубик, тень надо поднять на 1
+      uint norm_idx = pTerrainNormalIndices[2 * (x * 128 + z) + 2];
       assert(norm_idx < uNumTerrainNormals);
 
       auto norm = pTerrainNormals + norm_idx;
@@ -342,7 +342,7 @@
       bool transparent = false;
       if ( !( pTile->flags & 1 ) ) // не поддерживается TextureFrameTable
       {
-        if ( pTile->flags & 2 && pTile->uTileBitmapID == pRenderer->hd_water_tile_id)
+        if ( /*pTile->flags & 2 && */pTile->uTileBitmapID == pRenderer->hd_water_tile_id)
         {
           //transparent = false;
           v6 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame];