Added support for drawing submodels.

This commit is contained in:
leo
2014-12-24 15:52:52 +00:00
parent ffc58f554c
commit 788f0bf9e4
13 changed files with 222 additions and 58 deletions
+2 -2
View File
@@ -354,7 +354,7 @@ void lcContext::DrawOpaqueMeshes(const lcMatrix44& ViewMatrix, const lcArray<lcR
lcMesh* Mesh = RenderMesh.Mesh;
BindMesh(Mesh);
SetWorldViewMatrix(lcMul(*RenderMesh.WorldMatrix, ViewMatrix));
SetWorldViewMatrix(lcMul(RenderMesh.WorldMatrix, ViewMatrix));
for (int SectionIdx = 0; SectionIdx < Mesh->mNumSections; SectionIdx++)
{
@@ -414,7 +414,7 @@ void lcContext::DrawTranslucentMeshes(const lcMatrix44& ViewMatrix, const lcArra
lcMesh* Mesh = RenderMesh.Mesh;
BindMesh(Mesh);
SetWorldViewMatrix(lcMul(*RenderMesh.WorldMatrix, ViewMatrix));
SetWorldViewMatrix(lcMul(RenderMesh.WorldMatrix, ViewMatrix));
for (int SectionIdx = 0; SectionIdx < Mesh->mNumSections; SectionIdx++)
{