comparison Engine/Graphics/Render.cpp @ 2559:6ab1273bc507

.
author Ritor1
date Thu, 14 May 2015 19:16:08 +0600
parents c674d547cc7c
children 44d9df75dc13
comparison
equal deleted inserted replaced
2558:5d6fb8eb023c 2559:6ab1273bc507
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