mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-04 18:21:49 +00:00
Add default shader include for iw4 with code constants
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user