| 250 | } |
| 251 | |
| 252 | void MapLoader::LoadLightmap( const Vfs::FileContent& map_file, MapData& map_data ) |
| 253 | { |
| 254 | const unsigned int c_lightmap_data_offset= 0x01u; |
| 255 | |
| 256 | const unsigned char* const in_data= map_file.data() + c_lightmap_data_offset; |
| 257 | |
| 258 | // TODO - tune formula |
| 259 | for( unsigned int y= 0u; y < MapData::c_lightmap_size; y++ ) |
| 260 | for( unsigned int x= 0u; x < MapData::c_lightmap_size - 1u; x++ ) |
| 261 | { |
| 262 | map_data.lightmap[ x + 1u + y * MapData::c_lightmap_size ]= |
| 263 | ConvertMapLight( in_data[ x + y * MapData::c_lightmap_size ] ); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | const unsigned char* MapLoader::GetWallsLightmapData( const Vfs::FileContent& map_file ) |
| 268 | { |
nothing calls this directly
no test coverage detected