comparison Render.cpp @ 737:225d92620998

004A19D8 refactored
author Nomad
date Fri, 22 Mar 2013 20:40:23 +0200
parents 2f4e33c1ed24
children 852ec78d9548
comparison
equal deleted inserted replaced
736:9cc972ebd3cf 737:225d92620998
8138 if ( pSoftBillboard->uFlags & 4 ) 8138 if ( pSoftBillboard->uFlags & 4 )
8139 v31 = v31 * -1.0; 8139 v31 = v31 * -1.0;
8140 if ( pSoftBillboard->uTintColor && this->bTinting ) 8140 if ( pSoftBillboard->uTintColor && this->bTinting )
8141 { 8141 {
8142 v11 = ::GetActorTintColor(dimming_level, 0, pSoftBillboard->zbuffer_depth, 0, 0); 8142 v11 = ::GetActorTintColor(dimming_level, 0, pSoftBillboard->zbuffer_depth, 0, 0);
8143 v12 = sub_4A19D8(pSoftBillboard->uTintColor, v11); 8143 v12 = BlendColors(pSoftBillboard->uTintColor, v11);
8144 if ( v28 ) 8144 if ( v28 )
8145 v12 = (unsigned int)((char *)&array_77EC08[1852].pEdgeList1[17] + 3) & ((unsigned int)v12 >> 1); 8145 v12 = (unsigned int)((char *)&array_77EC08[1852].pEdgeList1[17] + 3) & ((unsigned int)v12 >> 1);
8146 } 8146 }
8147 else 8147 else
8148 { 8148 {
8584 v29 = (a2->_screenspace_y_scaler_packedfloat & 0xFFFF) / 65530.0 + HIWORD(a2->_screenspace_y_scaler_packedfloat); 8584 v29 = (a2->_screenspace_y_scaler_packedfloat & 0xFFFF) / 65530.0 + HIWORD(a2->_screenspace_y_scaler_packedfloat);
8585 8585
8586 unsigned int diffuse = ::GetActorTintColor(dimming_level, 0, a2->zbuffer_depth, 0, pBillboard); 8586 unsigned int diffuse = ::GetActorTintColor(dimming_level, 0, a2->zbuffer_depth, 0, pBillboard);
8587 if (a2->uTintColor & 0x00FFFFFF && bTinting) 8587 if (a2->uTintColor & 0x00FFFFFF && bTinting)
8588 { 8588 {
8589 diffuse = sub_4A19D8(a2->uTintColor, diffuse); 8589 diffuse = BlendColors(a2->uTintColor, diffuse);
8590 if (a2->uTintColor & 0xFF000000) 8590 if (a2->uTintColor & 0xFF000000)
8591 diffuse = 0x007F7F7F & ((unsigned int)diffuse >> 1); 8591 diffuse = 0x007F7F7F & ((unsigned int)diffuse >> 1);
8592 } 8592 }
8593 8593
8594 unsigned int specular = 0; 8594 unsigned int specular = 0;