repack skies

This commit is contained in:
Garux
2022-02-11 22:14:37 +03:00
parent 41d37cf57d
commit b62d73c168
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -71,6 +71,9 @@ static inline void tex2list( StrList& texlist, const StrList& EXtex, const StrLi
!StrList_find( *rEXtex, token ) ) ){
texlist.emplace_back( token );
}
else{
Sys_FPrintf( SYS_WRN, "WARNING444: %s\n", token );
}
strcpy( dot, ".tga" ); // default extension for repacked shader text
}
@@ -747,7 +750,12 @@ int repackBSPMain( Args& args ){
if( analyze )
return 0;
LoadShaderInfo();
for( const auto& si : Span( shaderInfo, shaderInfo + numShaderInfo ) ){
if( strIstr( si.shaderText, "skyparms" ) ){
res2list( pk3Shaders, si.shader );
}
}
pk3Shaderfiles = vfsListShaderFiles( g_game->shaderPath );
+1 -1
View File
@@ -100,7 +100,7 @@
#define DEF_RADIOSITY_BOUNCE 1.0f /* ydnar: default to 100% re-emitted light */
#define MAX_SHADER_INFO 8192
#define MAX_SHADER_INFO 8192 * 16
/* epair parsing (note case-sensitivity directive) */