Mercurial > mm7
changeset 1283:2a1ca27945e1
m
author | Ritor1 |
---|---|
date | Sat, 15 Jun 2013 17:39:01 +0600 |
parents | 8a196c858180 |
children | 2767980b98bb |
files | mm7_1.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 )