2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 10:55:35 +00:00

Add hecl_lightmap to MP3 materials

This commit is contained in:
Phillip Stephens 2016-02-25 23:57:22 -08:00
parent 1dde24bb74
commit 10db7d86d2

View File

@ -167,9 +167,16 @@ void Material::SectionPASS::constructNode(HECL::BlenderConnection::PyOutStream&
switch (Subtype(subtype.toUint32()))
{
case Subtype::DIFF:
{
out << "pnode.node_tree = bpy.data.node_groups['RetroPassDIFF']\n";
if (txtrId)
{
out << "new_material.hecl_lightmap = texture.name\n"
<< "texture.image.use_fake_user = True\n";
}
linkRAS = true;
break;
}
case Subtype::RIML:
out << "pnode.node_tree = bpy.data.node_groups['RetroPassRIML']\n";
if (idx == 0)