Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 851d37a

Browse files
committed
added -nodefaultcubemap option to prevent cubemaps from being generated
1 parent 533b83a commit 851d37a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Features
1212
- Completely standalone from the Source SDK
1313
- Large address aware binaries
1414
- Smoothing groups applied to func_details ([tgnottingham](https://github.com/ValveSoftware/source-sdk-2013/pull/391))
15+
- Option to disable default cubemaps \[-nodefaultcubemap\] ([wouterpleizier](https://github.com/wouterpleizier/source-sdk-2013/commit/8a102a7b6d6e821bc77925a3df241cfad70876e7))
1516

1617
More Info
1718
---------

utils/vbsp/vbsp.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ qboolean noshare;
4343
qboolean nosubdiv;
4444
qboolean notjunc;
4545
qboolean noopt;
46+
qboolean nodefaultcubemap;
4647
qboolean leaktest;
4748
qboolean verboseentities;
4849
qboolean dumpcollide = false;
@@ -858,8 +859,12 @@ void ProcessModels (void)
858859
}
859860
}
860861

861-
// Turn the skybox into a cubemap in case we don't build env_cubemap textures.
862-
Cubemap_CreateDefaultCubemaps();
862+
if (!nodefaultcubemap)
863+
{
864+
// Turn the skybox into a cubemap in case we don't build env_cubemap textures.
865+
Cubemap_CreateDefaultCubemaps();
866+
}
867+
863868
EndBSPFile ();
864869
}
865870

@@ -979,6 +984,11 @@ int RunVBSP( int argc, char **argv )
979984
Msg ("nodetail = true\n");
980985
nodetail = true;
981986
}
987+
else if (!Q_stricmp(argv[i], "-nodefaultcubemap"))
988+
{
989+
Msg ("nodefaultcubemap = true\n");
990+
nodefaultcubemap = true;
991+
}
982992
else if (!Q_stricmp(argv[i], "-fulldetail"))
983993
{
984994
Msg ("fulldetail = true\n");
@@ -1210,6 +1220,7 @@ int RunVBSP( int argc, char **argv )
12101220
" -nomerge : Don't merge together chopped faces on nodes.\n"
12111221
" -nomergewater: Don't merge together chopped faces on water.\n"
12121222
" -nosubdiv : Don't subdivide faces for lightmapping.\n"
1223+
" -nodefaultcubemap: Don't generate a default cubemap.\n"
12131224
" -micro <#> : vbsp will warn when brushes are output with a volume less\n"
12141225
" than this number (default: 1.0).\n"
12151226
" -fulldetail : Mark all detail geometry as normal geometry (so all detail\n"

0 commit comments

Comments
 (0)