Sfoglia il codice sorgente

~ 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>

Alexis Maiquez 4 anni fa
parent
commit
131801b7f0
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/WallpaperEngine/Render/Objects/Effects/CPass.cpp

+ 2 - 0
src/WallpaperEngine/Render/Objects/Effects/CPass.cpp

@@ -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