-lightmapdir option
git-svn-id: svn://svn.icculus.org/netradiant/trunk@197 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
9bd5bdc258
commit
cf6c8123dd
|
|
@ -2027,6 +2027,15 @@ int LightMain( int argc, char **argv )
|
|||
}
|
||||
}
|
||||
|
||||
else if( !strcmp( argv[ i ], "-lightmapdir" ) )
|
||||
{
|
||||
lmCustomDir = argv[i + 1];
|
||||
i++;
|
||||
Sys_Printf( "Lightmap directory set to %s\n", lmCustomDir );
|
||||
externalLightmaps = qtrue;
|
||||
Sys_Printf( "Storing all lightmaps externally\n" );
|
||||
}
|
||||
|
||||
/* ydnar: add this to suppress warnings */
|
||||
else if( !strcmp( argv[ i ], "-custinfoparms") )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2278,8 +2278,15 @@ void StoreSurfaceLightmaps( void )
|
|||
Sys_Printf( "--- StoreSurfaceLightmaps ---\n");
|
||||
|
||||
/* setup */
|
||||
strcpy( dirname, source );
|
||||
StripExtension( dirname );
|
||||
if(lmCustomDir)
|
||||
{
|
||||
strcpy( dirname, lmCustomDir );
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy( dirname, source );
|
||||
StripExtension( dirname );
|
||||
}
|
||||
memset( rgbGenValues, 0, sizeof( rgbGenValues ) );
|
||||
memset( alphaGenValues, 0, sizeof( alphaGenValues ) );
|
||||
|
||||
|
|
|
|||
|
|
@ -2118,6 +2118,7 @@ Q_EXTERN qboolean noCollapse Q_ASSIGN( qfalse );
|
|||
Q_EXTERN qboolean exportLightmaps Q_ASSIGN( qfalse );
|
||||
Q_EXTERN qboolean externalLightmaps Q_ASSIGN( qfalse );
|
||||
Q_EXTERN int lmCustomSize Q_ASSIGN( LIGHTMAP_WIDTH );
|
||||
Q_EXTERN char * lmCustomDir Q_ASSIGN( NULL );
|
||||
|
||||
Q_EXTERN qboolean dirty Q_ASSIGN( qfalse );
|
||||
Q_EXTERN qboolean dirtDebug Q_ASSIGN( qfalse );
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user