First step towards refactoring
This commit is contained in:
parent
ef031c2073
commit
6fc7eaf2fa
4 changed files with 34 additions and 28 deletions
|
|
@ -3395,7 +3395,7 @@ void MapLoader::InitLightmap(MapData* map)
|
|||
return buffer.Data() + ((y * width) + x + (height * width * page)) * 3;
|
||||
};
|
||||
|
||||
#if 0
|
||||
//#if 0
|
||||
srand(1337);
|
||||
for (auto& surface : Level->levelMesh->Surfaces)
|
||||
{
|
||||
|
|
@ -3424,7 +3424,7 @@ void MapLoader::InitLightmap(MapData* map)
|
|||
ptr[2] = floatToHalf(0.0f);
|
||||
}
|
||||
|
||||
if (Level->levelMesh->TraceSky(surface.worldOrigin - surface.worldStepX - surface.worldStepY + surface.worldStepX * x + surface.worldStepY * y + FVector3(surface.plane.Normal()), Level->SunDirection, 32000.0f))
|
||||
/*if (Level->levelMesh->TraceSky(surface.worldOrigin - surface.worldStepX - surface.worldStepY + surface.worldStepX * x + surface.worldStepY * y + FVector3(surface.plane.Normal()), Level->SunDirection, 32000.0f))
|
||||
{
|
||||
ptr[0] = floatToHalf(Level->SunColor.X);
|
||||
ptr[1] = floatToHalf(Level->SunColor.Y);
|
||||
|
|
@ -3435,11 +3435,11 @@ void MapLoader::InitLightmap(MapData* map)
|
|||
ptr[0] = 0;
|
||||
ptr[1] = 0;
|
||||
ptr[2] = 0;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
};
|
||||
|
||||
int size = Level->LMTextureSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue