* support -shadersasbitmap in -lightmapsastexcoord conversion mode

This commit is contained in:
Garux 2019-12-04 22:35:50 +03:00
parent 661e8b00de
commit b96aed7190
2 changed files with 8 additions and 2 deletions

View File

@ -315,6 +315,9 @@ static void ConvertLightmap( FILE *f, const char *base, int lightmapNum ){
fprintf( f, "\t\t\t*MAP_SUBNO\t1\r\n" );
fprintf( f, "\t\t\t*MAP_AMOUNT\t1.0\r\n" );
fprintf( f, "\t\t\t*MAP_TYPE\tScreen\r\n" );
if( shadersAsBitmap )
fprintf( f, "\t\t\t*BITMAP\t\"maps\\%s\\" EXTERNAL_LIGHTMAP "\"\r\n", base, lightmapNum );
else
fprintf( f, "\t\t\t*BITMAP\t\"%s\\" EXTERNAL_LIGHTMAP "\"\r\n", base, lightmapNum );
fprintf( f, "\t\t\t*BITMAP_FILTER\tPyramidal\r\n" );
fprintf( f, "\t\t}\r\n" );

View File

@ -200,6 +200,9 @@ static void ConvertLightmapToMTL( FILE *f, const char *base, int lightmapNum ){
/* blender hates this, so let's not do it
fprintf( f, "map_Kd %s\\" EXTERNAL_LIGHTMAP "\r\n", base, lightmapNum );
*/
if( shadersAsBitmap )
fprintf( f, "map_Kd maps/%s/" EXTERNAL_LIGHTMAP "\r\n", base, lightmapNum );
else
fprintf( f, "map_Kd %s/" EXTERNAL_LIGHTMAP "\r\n", base, lightmapNum );
}
}