2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-24 05:32:06 +00:00

feat: dump t6 shader args

This commit is contained in:
Jan Laupetin
2025-11-16 00:12:52 +00:00
parent a064b5fd71
commit 38960a25f3
21 changed files with 2341 additions and 71 deletions

View File

@@ -6,7 +6,7 @@
#include "ObjWriting.h"
#include "Zone/ZoneRegistry.h"
namespace IW3
namespace
{
const char* KNOWN_CONSTANT_NAMES[]{
"worldViewProjectionMatrix",
@@ -197,7 +197,10 @@ namespace IW3
"worldMap",
"worldMapSampler",
};
} // namespace
namespace IW3
{
void MaterialConstantZoneState::ExtractNamesFromZoneInternal()
{
for (const auto* zone : ZoneRegistry::GetRegistryForGame(GameId::IW3)->Zones())
@@ -219,7 +222,7 @@ namespace IW3
}
}
unsigned MaterialConstantZoneState::HashString(const std::string& str)
unsigned MaterialConstantZoneState::HashString(const std::string& str) const
{
return Common::R_HashString(str.c_str());
}