mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-11 19:21:50 +00:00
feat: dump t6 shader args
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include "ObjWriting.h"
|
||||
#include "Zone/ZoneRegistry.h"
|
||||
|
||||
namespace IW4
|
||||
namespace
|
||||
{
|
||||
const char* KNOWN_CONSTANT_NAMES[]{
|
||||
"worldViewProjectionMatrix",
|
||||
@@ -197,7 +197,10 @@ namespace IW4
|
||||
"worldMap",
|
||||
"worldMapSampler",
|
||||
};
|
||||
} // namespace
|
||||
|
||||
namespace IW4
|
||||
{
|
||||
void MaterialConstantZoneState::ExtractNamesFromZoneInternal()
|
||||
{
|
||||
for (const auto* zone : ZoneRegistry::GetRegistryForGame(GameId::IW4)->Zones())
|
||||
@@ -230,7 +233,7 @@ namespace IW4
|
||||
AddTextureDefName(knownTextureDefName);
|
||||
}
|
||||
|
||||
unsigned MaterialConstantZoneState::HashString(const std::string& str)
|
||||
unsigned MaterialConstantZoneState::HashString(const std::string& str) const
|
||||
{
|
||||
return Common::R_HashString(str.c_str());
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ namespace IW4
|
||||
protected:
|
||||
void ExtractNamesFromZoneInternal() override;
|
||||
void AddStaticKnownNames() override;
|
||||
unsigned HashString(const std::string& str) override;
|
||||
[[nodiscard]] unsigned HashString(const std::string& str) const override;
|
||||
};
|
||||
} // namespace IW4
|
||||
|
||||
Reference in New Issue
Block a user