Mercurial > mm7
diff mm7_3.cpp @ 579:a295c9f956d1
m
author | Ritor1 |
---|---|
date | Wed, 06 Mar 2013 09:28:09 +0600 |
parents | fdea951756f9 |
children | bcae3e06cadb |
line wrap: on
line diff
--- a/mm7_3.cpp Tue Mar 05 10:45:40 2013 +0600 +++ b/mm7_3.cpp Wed Mar 06 09:28:09 2013 +0600 @@ -6164,7 +6164,7 @@ array_50AC10[3].vWorldViewProjX = pViewport->uViewportZ; array_50AC10[3].vWorldViewProjY = v38; - v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5; + /*v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5; v33 = 65536 / (signed int)(v36 / tan(0.6457717418670654) + 0.5); for (int i = 0; i < _this.uNumVertices; ++i) @@ -6232,33 +6232,33 @@ v36 += ((unsigned __int64)(_this.ptr_38->field_1C * v13) >> 16); v35 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v37 * v18) >> 16) / 8; v36 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v36 * v18) >> 16) / 8; - - array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - array_50AC10[i]._rhw = 1; + */ + //array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + //array_50AC10[i]._rhw = 1; //array_50AC10[i].u = (double)v35 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); //array_50AC10[i].v = (double)v36 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); - } + //} if ( _this.uNumVertices > 0) { float t = (GetTickCount() % 96000) / 96000.0f; - //array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[0]._rhw = 1; + array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[0]._rhw = 1; array_50AC10[0].u = 0; array_50AC10[0].v = 0 + t; - //array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[1]._rhw = 1; + array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[1]._rhw = 1; array_50AC10[1].u = 0; array_50AC10[1].v = 1 + t; - //array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[2]._rhw = 1; + array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[2]._rhw = 1; array_50AC10[2].u = 1; array_50AC10[2].v = 0 + t; - //array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[3]._rhw = 1; + array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[3]._rhw = 1; array_50AC10[3].u = 1; array_50AC10[3].v = 1 + t; pRenderer->DrawStrip(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);