# HG changeset patch # User Ritor1 # Date 1371296341 -21600 # Node ID 2a1ca27945e1d3c5972e1f4d735c34f21c067607 # Parent 8a196c85818012770d96f1000cf04ac0cf6fdc6a m diff -r 8a196c858180 -r 2a1ca27945e1 mm7_1.cpp --- a/mm7_1.cpp Sat Jun 15 09:55:27 2013 +0600 +++ b/mm7_1.cpp Sat Jun 15 17:39:01 2013 +0600 @@ -1595,7 +1595,6 @@ } for (uint i = 0; i < pFace->uNumVertices; ++i) { - //перенос вершины в пространство камеры(перед камерой), определяет находятся ли она после этого в её поле зрения pGame->pIndoorCameraD3D->ApplyViewTransform_TrueIfStillVisible(pIndoor->pVertices[pFace->pVertexIDs[i]].x, pIndoor->pVertices[pFace->pVertexIDs[i]].y, pIndoor->pVertices[pFace->pVertexIDs[i]].z, &stru_50B700._view_transformed_xs[i], &stru_50B700._view_transformed_zs[i], &stru_50B700._view_transformed_ys[i], 0); @@ -1606,7 +1605,7 @@ bool bFound = false; for (uint i = 0; i < pFace->uNumVertices; ++i) - if (stru_50B700._view_transformed_xs[i] >= 0x80000u)//отбраковывание по задней границе(cull for near clip plane) по z координате + if (stru_50B700._view_transformed_xs[i] >= 0x80000u)//find vertices > near clip plane { bFound = true; break; @@ -1637,7 +1636,6 @@ //y = (v1.y - v0.y)*t + v0.y stru_50B700.field_128[depth_num_vertices] = ((unsigned __int64)((stru_50B700._view_transformed_zs[i] - stru_50B700._view_transformed_zs[i - 1]) * t)) + stru_50B700._view_transformed_zs[i - 1]; - stru_50B700.field_218[depth_num_vertices] = 0x80000u;//z = 8.0 } else { @@ -1648,8 +1646,8 @@ //y = (v0.y - v1.y)*t + v1.y stru_50B700.field_128[depth_num_vertices] = ((unsigned __int64)((stru_50B700._view_transformed_zs[i - 1] - stru_50B700._view_transformed_zs[i]) * t)) + stru_50B700._view_transformed_zs[i]; - stru_50B700.field_218[depth_num_vertices] = 0x80000u;//z = 8.0 } + stru_50B700.field_218[depth_num_vertices] = 0x80000u;//z = 8.0 depth_num_vertices++; } if ( next_vertices_flag )