Skip to content

Commit

Permalink
vbsp can now load custom shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfestridershooter committed Nov 3, 2023
1 parent 5c9cf02 commit 474eda0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sp/src/utils/common/utilmatlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ void LoadMaterialSystemInterface( CreateInterfaceFn fileSystemFactory )
{
Error( "Could not start the empty shader (shaderapiempty.dll)!" );
}

// loads game shader dlls from game directory
// i.e. allows you to use custom lightmapped shaders in hammer
// the respective call to ModShutdown() has been left out on purpose because it makes vbsp crash
g_pMaterialSystem->ModInit();
}

void InitMaterialSystem( const char *materialBaseDirPath, CreateInterfaceFn fileSystemFactory )
Expand Down

0 comments on commit 474eda0

Please sign in to comment.