~ quick and dirty fix for composite color not being the right value (need to verify that this is actually what should happen)

fixes @C0nvert's #59 issue

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2022-02-23 09:50:55 +01:00
parent 42b8c92c1c
commit 131801b7f0

View File

@ -469,6 +469,8 @@ void CPass::setupUniforms ()
this->addUniform ("g_UserAlpha", this->m_material->getImage ()->getImage ()->getAlpha ());
this->addUniform ("g_Alpha", this->m_material->getImage ()->getImage ()->getAlpha ());
this->addUniform ("g_Color", this->m_material->getImage ()->getImage ()->getColor ());
// TODO: VALIDATE THAT G_COMPOSITECOLOR REALLY COMES FROM THIS ONE
this->addUniform ("g_CompositeColor", this->m_material->getImage ()->getImage ()->getColor ());
// add some external variables
this->addUniform ("g_Time", &g_Time);
// add model-view-projection matrix