Added DXTexture fields to CMaterialGlue

This commit is contained in:
PixieCore 2022-03-18 20:13:28 +01:00
parent 0c9e184e3f
commit 96ee0a834d
2 changed files with 22 additions and 1 deletions

View File

@ -21,7 +21,10 @@ public:
void* m_pTextureGUID2; //0x0068
char pad_0070[4]; //0x0070
int32_t m_iMaterialRes; //0x0074
char pad_0078[184]; //0x0078
char pad_0078[136]; //0x0078
void** m_ppDXTexture1; //0x0100
void** m_ppDXTexture2; //0x0108
char pad_0110[32]; //0x0110
}; //Size: 0x0130
namespace

View File

@ -829,6 +829,24 @@ void _CMaterial_GetMaterialAtCrossHair_f_ComplectionFunc(const CCommand& args)
DevMsg(eDLL_T::MS, "] Material Surface Name 2: 'NULL'\n");
}
if (material->m_ppDXTexture1)
{
DevMsg(eDLL_T::MS, "] DX Texture 1: '%llX'\n", material->m_ppDXTexture1);
}
else
{
DevMsg(eDLL_T::MS, "] DX Texture 1: 'NULL'\n");
}
if (material->m_ppDXTexture2)
{
DevMsg(eDLL_T::MS, "] DX Texture 2: '%llX'\n", material->m_ppDXTexture2);
}
else
{
DevMsg(eDLL_T::MS, "] DX Texture 2: 'NULL'\n");
}
material->m_pDepthShadow ? fnPrintChild(material->m_pDepthShadow, " ] DepthShadow Addr: '%llX'\n") : DevMsg(eDLL_T::MS, "] DepthShadow Addr: 'NULL'\n");
material->m_pDepthPrepass ? fnPrintChild(material->m_pDepthPrepass, " ] DepthPrepass Addr: '%llX'\n") : DevMsg(eDLL_T::MS, "] DepthPrepass Addr: 'NULL'\n");
material->m_pDepthVSM ? fnPrintChild(material->m_pDepthVSM, " ] DepthVSM Addr: '%llX'\n") : DevMsg(eDLL_T::MS, "] DepthVSM Addr: 'NULL'\n");