comparison LightmapBuilder.cpp @ 50:fde5c5acb66e

BLV render
author Nomad
date Tue, 23 Oct 2012 23:38:05 +0200
parents bcc051713d20
children 5159d2e6f559
comparison
equal deleted inserted replaced
47:8a8dd0164b12 50:fde5c5acb66e
46 46
47 47
48 48
49 49
50 //----- (0045BC07) -------------------------------------------------------- 50 //----- (0045BC07) --------------------------------------------------------
51 char LightmapBuilder::ApplyLights(stru320 *a2, stru154 *a3, unsigned int uNumVertices, RenderVertexSoft *a5, float a6, char a7) 51 char LightmapBuilder::ApplyLights(stru320 *a2, stru154 *a3, unsigned int uNumVertices, RenderVertexSoft *a5, IndoorCameraD3D_Vec4 *a6, char a7)
52 { 52 {
53 char *v7; // eax@3 53 char *v7; // eax@3
54 signed int v8; // ecx@3 54 signed int v8; // ecx@3
55 RenderVertexSoft *v9; // eax@10 55 RenderVertexSoft *v9; // eax@10
56 unsigned int v10; // edx@10 56 unsigned int v10; // edx@10
95 LightmapBuilder_static_sub_45BC07_stru_69B140[i].flt_2C = 0.0f; 95 LightmapBuilder_static_sub_45BC07_stru_69B140[i].flt_2C = 0.0f;
96 _static_initialized = true; 96 _static_initialized = true;
97 } 97 }
98 98
99 a9 = (int)a5; 99 a9 = (int)a5;
100 if ( a6 == 0.0 ) 100 if ( !a6)
101 { 101 {
102 v14 = a3; 102 v14 = a3;
103 } 103 }
104 else 104 else
105 { 105 {
159 v20 = *((float *)v19 + 80) * 255.0; 159 v20 = *((float *)v19 + 80) * 255.0;
160 arg0 = *(v19 - 20); 160 arg0 = *(v19 - 20);
161 v29 = *v19; 161 v29 = *v19;
162 v30 = v19[60]; 162 v30 = v19[60];
163 v21 = *(v19 - 60); 163 v21 = *(v19 - 60);
164 a6 = v20; 164 //a6 = v20;
165 v36 = v21; 165 v36 = v21;
166 v37 = v19[20]; 166 v37 = v19[20];
167 auto _a6_1 = floorf(v20 + 0.5f);
167 //v33 = a6 + 6.7553994e15; 168 //v33 = a6 + 6.7553994e15;
168 a6 = *((float *)v19 + 100) * 255.0; 169 auto _a6_2 = *((float *)v19 + 100) * 255.0;
169 //v32 = a6 + 6.7553994e15; 170 //v32 = a6 + 6.7553994e15;
170 a6 = *((float *)v19 + 120) * 255.0; 171 auto _a6_3 = *((float *)v19 + 120) * 255.0;
171 //v31 = a6 + 6.7553994e15; 172 //v31 = a6 + 6.7553994e15;
172 //v38 = __PAIR__(LODWORD(v32), LODWORD(v31)); 173 //v38 = __PAIR__(LODWORD(v32), LODWORD(v31));
173 v38 = __PAIR__((int)floorf(a6 + 0.5f), (int)floorf(a6 + 0.5f)); 174 v38 = __PAIR__((int)floorf(_a6_2 + 0.5f), (int)floorf(_a6_3 + 0.5f));
174 //v22 = LODWORD(v31) | ((LODWORD(v32) | (LODWORD(v33) << 8)) << 8); 175 //v22 = LODWORD(v31) | ((LODWORD(v32) | (LODWORD(v33) << 8)) << 8);
175 v22 = (int)floorf(a6 + 0.5f) | (((int)floorf(a6 + 0.5f) | ((int)floorf(a6 + 0.5f) << 8)) << 8); 176 v22 = (int)floorf(_a6_3 + 0.5f) | (((int)floorf(_a6_2 + 0.5f) | ((int)floorf(_a6_1 + 0.5f) << 8)) << 8);
176 if (!v22) 177 if (!v22)
177 v22 = 0x00FFFFFF; 178 v22 = 0x00FFFFFF;
178 v27 = a7; 179 v27 = a7;
179 v23 = (int)a5; 180 v23 = (int)a5;
180 v26 = (Vec3_float_ *)a9; 181 v26 = (Vec3_float_ *)a9;