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

Commit

Permalink
added -nodefaultcubemap option to prevent cubemaps from being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
AusHick committed Apr 4, 2017
1 parent 533b83a commit 851d37a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Features
- Completely standalone from the Source SDK
- Large address aware binaries
- Smoothing groups applied to func_details ([tgnottingham](https://github.com/ValveSoftware/source-sdk-2013/pull/391))
- Option to disable default cubemaps \[-nodefaultcubemap\] ([wouterpleizier](https://github.com/wouterpleizier/source-sdk-2013/commit/8a102a7b6d6e821bc77925a3df241cfad70876e7))

More Info
---------
Expand Down
15 changes: 13 additions & 2 deletions utils/vbsp/vbsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ qboolean noshare;
qboolean nosubdiv;
qboolean notjunc;
qboolean noopt;
qboolean nodefaultcubemap;
qboolean leaktest;
qboolean verboseentities;
qboolean dumpcollide = false;
Expand Down Expand Up @@ -858,8 +859,12 @@ void ProcessModels (void)
}
}

// Turn the skybox into a cubemap in case we don't build env_cubemap textures.
Cubemap_CreateDefaultCubemaps();
if (!nodefaultcubemap)
{
// Turn the skybox into a cubemap in case we don't build env_cubemap textures.
Cubemap_CreateDefaultCubemaps();
}

EndBSPFile ();
}

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

0 comments on commit 851d37a

Please sign in to comment.