comparison Engine/Graphics/Render.cpp @ 2561:98057834c9a0

for VS2012
author Ritor1
date Thu, 14 May 2015 19:29:28 +0600
parents 44d9df75dc13
children b8a56afc6ba1
comparison
equal deleted inserted replaced
2560:44d9df75dc13 2561:98057834c9a0
381 pTilePolygon->dimming_level = 20.0 - floorf(20.0 * _f + 0.5f); 381 pTilePolygon->dimming_level = 20.0 - floorf(20.0 * _f + 0.5f);
382 if ( norm_idx < 0 || norm_idx > uNumTerrainNormals - 1 ) 382 if ( norm_idx < 0 || norm_idx > uNumTerrainNormals - 1 )
383 norm = 0; 383 norm = 0;
384 else 384 else
385 norm = &pTerrainNormals[norm_idx]; 385 norm = &pTerrainNormals[norm_idx];
386 //if (for_refactoring) 386 if (for_refactoring)
387 { 387 {
388 //MessageBoxA(nullptr, "Ritor1: function StackLights_TerrainFace needed refactoring and result - slows", "", 0); 388 //MessageBoxA(nullptr, "Ritor1: function StackLights_TerrainFace needed refactoring and result - slows", "", 0);
389 //__debugbreak(); 389 //__debugbreak();
390 390
391 pEngine->pLightmapBuilder->StackLights_TerrainFace(norm, &Light_tile_dist, array_50AC10, 4, 1);//Ritor1: slows 391 pEngine->pLightmapBuilder->StackLights_TerrainFace(norm, &Light_tile_dist, array_50AC10, 4, 1);//Ritor1: slows