2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-13 03:57:26 +00:00

Add default shader include for iw4 with code constants

This commit is contained in:
Jan
2022-09-17 23:09:23 +02:00
parent 08278c451a
commit ee2a5b57f4
3 changed files with 135 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ ShaderIncludeHandler::~ShaderIncludeHandler() = default;
HRESULT ShaderIncludeHandler::Open(D3D_INCLUDE_TYPE includeType, const LPCSTR pFileName, LPCVOID pParentData, LPCVOID* ppData, UINT* pBytes)
{
std::ostringstream ss;
ss << "shaders/" << pFileName;
ss << "shader/" << pFileName;
auto file = m_search_path->Open(ss.str());
if (!file.IsOpen() || file.m_length <= 0)