2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:07:44 +00:00

MP2 MREA geometry

This commit is contained in:
Jack Andersen
2015-09-08 14:49:20 -10:00
parent c55a3e0ac1
commit 850fcd2747
8 changed files with 488 additions and 93 deletions

View File

@@ -666,7 +666,7 @@ void _ConstructMaterial(Stream& out,
char a_regs[4][64] = {"ONE", "ONE", "ONE", "ONE"};
/* Has Lightmap? */
if (material.tevStages[0].colorInB() == GX::CC_C1)
if (material.flags.lightmap() && material.tevStages[0].colorInB() == GX::CC_C1)
{
if (material.tevStageTexInfo[0].texSlot != 0xff)
out << "new_material.retro_lightmap = tex_maps[0].name\n"