2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

ColorRegs for CModelFlags

This commit is contained in:
Jack Andersen
2016-07-31 20:36:51 -10:00
parent 1c64605261
commit 40e0b70d0e
4 changed files with 11 additions and 4 deletions

View File

@@ -518,6 +518,9 @@ void CBooModel::UpdateUniformData(const CModelFlags& flags) const
{
CModelShaders::LightingUniform& lightingOut = *reinterpret_cast<CModelShaders::LightingUniform*>(dataCur);
lightingOut = m_lightingData;
lightingOut.colorRegs[0] = flags.regColors[0];
lightingOut.colorRegs[1] = flags.regColors[1];
lightingOut.colorRegs[2] = flags.regColors[2];
}
m_uniformBuffer->unmap();