comparison mm7_3.cpp @ 579:a295c9f956d1

m
author Ritor1
date Wed, 06 Mar 2013 09:28:09 +0600
parents fdea951756f9
children bcae3e06cadb
comparison
equal deleted inserted replaced
578:fdea951756f9 579:a295c9f956d1
6162 array_50AC10[2].vWorldViewProjY = pViewport->uViewportY; 6162 array_50AC10[2].vWorldViewProjY = pViewport->uViewportY;
6163 6163
6164 array_50AC10[3].vWorldViewProjX = pViewport->uViewportZ; 6164 array_50AC10[3].vWorldViewProjX = pViewport->uViewportZ;
6165 array_50AC10[3].vWorldViewProjY = v38; 6165 array_50AC10[3].vWorldViewProjY = v38;
6166 6166
6167 v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5; 6167 /*v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5;
6168 v33 = 65536 / (signed int)(v36 / tan(0.6457717418670654) + 0.5); 6168 v33 = 65536 / (signed int)(v36 / tan(0.6457717418670654) + 0.5);
6169 6169
6170 for (int i = 0; i < _this.uNumVertices; ++i) 6170 for (int i = 0; i < _this.uNumVertices; ++i)
6171 { 6171 {
6172 v29 = floorf(array_50AC10[i].vWorldViewProjY + 0.5f); 6172 v29 = floorf(array_50AC10[i].vWorldViewProjY + 0.5f);
6230 6230
6231 v37 += ((unsigned __int64)(_this.ptr_38->field_10 * v13) >> 16); 6231 v37 += ((unsigned __int64)(_this.ptr_38->field_10 * v13) >> 16);
6232 v36 += ((unsigned __int64)(_this.ptr_38->field_1C * v13) >> 16); 6232 v36 += ((unsigned __int64)(_this.ptr_38->field_1C * v13) >> 16);
6233 v35 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v37 * v18) >> 16) / 8; 6233 v35 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v37 * v18) >> 16) / 8;
6234 v36 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v36 * v18) >> 16) / 8; 6234 v36 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v36 * v18) >> 16) / 8;
6235 6235 */
6236 array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; 6236 //array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist;
6237 array_50AC10[i]._rhw = 1; 6237 //array_50AC10[i]._rhw = 1;
6238 //array_50AC10[i].u = (double)v35 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); 6238 //array_50AC10[i].u = (double)v35 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth);
6239 //array_50AC10[i].v = (double)v36 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); 6239 //array_50AC10[i].v = (double)v36 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth);
6240 } 6240 //}
6241 if ( _this.uNumVertices > 0) 6241 if ( _this.uNumVertices > 0)
6242 { 6242 {
6243 float t = (GetTickCount() % 96000) / 96000.0f; 6243 float t = (GetTickCount() % 96000) / 96000.0f;
6244 6244
6245 //array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; 6245 array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist;
6246 //array_50AC10[0]._rhw = 1; 6246 array_50AC10[0]._rhw = 1;
6247 array_50AC10[0].u = 0; 6247 array_50AC10[0].u = 0;
6248 array_50AC10[0].v = 0 + t; 6248 array_50AC10[0].v = 0 + t;
6249 6249
6250 //array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; 6250 array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist;
6251 //array_50AC10[1]._rhw = 1; 6251 array_50AC10[1]._rhw = 1;
6252 array_50AC10[1].u = 0; 6252 array_50AC10[1].u = 0;
6253 array_50AC10[1].v = 1 + t; 6253 array_50AC10[1].v = 1 + t;
6254 6254
6255 //array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; 6255 array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist;
6256 //array_50AC10[2]._rhw = 1; 6256 array_50AC10[2]._rhw = 1;
6257 array_50AC10[2].u = 1; 6257 array_50AC10[2].u = 1;
6258 array_50AC10[2].v = 0 + t; 6258 array_50AC10[2].v = 0 + t;
6259 6259
6260 //array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; 6260 array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist;
6261 //array_50AC10[3]._rhw = 1; 6261 array_50AC10[3]._rhw = 1;
6262 array_50AC10[3].u = 1; 6262 array_50AC10[3].u = 1;
6263 array_50AC10[3].v = 1 + t; 6263 array_50AC10[3].v = 1 + t;
6264 pRenderer->DrawStrip(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]); 6264 pRenderer->DrawStrip(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);
6265 return; 6265 return;
6266 //} 6266 //}