asset manager
This commit is contained in:
@@ -5,6 +5,8 @@ class CBasicPBR: public CBaseMaterial
|
||||
public:
|
||||
DECLARE_CLASS(CBasicPBR, CBaseMaterial)
|
||||
DECLARE_DATADESC()
|
||||
DECLARE_SHADER("game/core/shaders/funny_basic_pbr.shader_c")
|
||||
|
||||
|
||||
FMat::XMFLOAT4 m_vAlbedo = { 1, 1, 1, 1 };
|
||||
FMat::XMTexture m_tAlbedo = TEXTURE_NO_TEXTURE;
|
||||
@@ -23,6 +25,7 @@ class CBasicError: public CBaseMaterial
|
||||
public:
|
||||
DECLARE_CLASS(CBasicError, CBaseMaterial)
|
||||
DECLARE_DATADESC()
|
||||
DECLARE_SHADER("game/core/shaders/funny_error.shader_c")
|
||||
};
|
||||
|
||||
BEGIN_DATADESC(CBasicError)
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
|
||||
void C_MOBAPlayer::Precache()
|
||||
{
|
||||
g_pAssetManager->LoadModel("game/core/models/cube.fmdl");
|
||||
uint32_t uIndex = g_pAssetManager->LoadModel("game/core/models/cube.fmdl");
|
||||
V_printf("%u\n", uIndex);
|
||||
pModel = g_pAssetManager->GetModelByIndex(uIndex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user