Mercurial > mm7
comparison Indoor.cpp @ 595:55d6b756e03a
Cave textures
author | Nomad |
---|---|
date | Wed, 06 Mar 2013 16:51:23 +0200 |
parents | 2d4204de7a8c |
children | 5cfb5dadf330 |
comparison
equal
deleted
inserted
replaced
594:badd65dff4e7 | 595:55d6b756e03a |
---|---|
525 stru_F7B60C.face_plane.vNormal.y = pFace->pFacePlane.vNormal.y; | 525 stru_F7B60C.face_plane.vNormal.y = pFace->pFacePlane.vNormal.y; |
526 stru_F7B60C.face_plane.vNormal.z = pFace->pFacePlane.vNormal.z; | 526 stru_F7B60C.face_plane.vNormal.z = pFace->pFacePlane.vNormal.z; |
527 stru_F7B60C.face_plane.dist = pFace->pFacePlane.dist; | 527 stru_F7B60C.face_plane.dist = pFace->pFacePlane.dist; |
528 } | 528 } |
529 | 529 |
530 if (stru_F8AD28.uNumLightsApplied > 0 && !pFace->uAttributes) | 530 if (stru_F8AD28.uNumLightsApplied > 0 && !(pFace->uAttributes & 0x400000)) |
531 //!(pFace->uAttributes & 0x400000)) | |
532 pGame->pLightmapBuilder->ApplyLights(&stru_F8AD28, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0); | 531 pGame->pLightmapBuilder->ApplyLights(&stru_F8AD28, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0); |
533 | 532 |
534 if (pDecalBuilder->uNumDecals > 0) | 533 if (pDecalBuilder->uNumDecals > 0) |
535 pDecalBuilder->ApplyDecals(a4a, 1, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0, pFace->uSectorID); | 534 pDecalBuilder->ApplyDecals(a4a, 1, &stru_F7B60C, uNumVerticesa, array_507D30, pVertices, 0, pFace->uSectorID); |
536 | 535 |
555 array_507D30[i].v += pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 * cosf(angle); | 554 array_507D30[i].v += pBitmaps_LOD->pTextures[pFace->uBitmapID].uHeightMinus1 * cosf(angle); |
556 | 555 |
557 v23 = pFace->uBitmapID; | 556 v23 = pFace->uBitmapID; |
558 goto LABEL_42; | 557 goto LABEL_42; |
559 } | 558 } |
560 else if (pFace->uAttributes)//(pFace->uAttributes & 0x4000) | 559 else if (pFace->uAttributes & 0x4000) |
561 { | 560 { |
562 v23 = pTextureFrameTable->GetFrameTexture(pFace->uBitmapID, pBLVRenderParams->field_0_timer_); | 561 v23 = pTextureFrameTable->GetFrameTexture(pFace->uBitmapID, pBLVRenderParams->field_0_timer_); |
563 LABEL_42: | 562 LABEL_42: |
564 v27 = pBitmaps_LOD->pHardwareTextures[v23]; | 563 v27 = pBitmaps_LOD->pHardwareTextures[v23]; |
565 if (pFace->uAttributes & 0x400000) | 564 if (pFace->uAttributes & FACE_DO_NOT_LIGHT) |
566 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); | 565 _479A53_draw_some_blv_poly(uNumVerticesa, uFaceID); |
567 else | 566 else |
568 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | 6, v17, 0); | 567 pRenderer->DrawIndoorPolygon(uNumVerticesa, pFace, v27, v28, 8 * uFaceID | 6, v17, 0); |
569 return; | 568 return; |
570 } | 569 } |
570 //v17 = 0xFFFFFFFF; | |
571 v23 = pFace->uBitmapID; | |
572 goto LABEL_42; | |
571 } | 573 } |
572 } | 574 } |
573 } | 575 } |
574 } | 576 } |
575 | 577 |