updated texture constructor calls

This commit is contained in:
devZoGok
2021-12-04 17:47:16 +02:00
parent 6a399c2470
commit 57ee6591fe
6 changed files with 15 additions and 14 deletions
+3 -3
View File
@@ -40,10 +40,10 @@ namespace battleship{
*/
this->node = new Model((projectileData::meshPath[id][weaponTypeId]));
Material *mat = new Material(Root::getSingleton()->getLibPath() + "texture");
mat->addVariable("lightingEnabled", false);
mat->addBoolUniform("lightingEnabled", false);
string f[]{projectileData::diffuseMapTextPath[id][weaponTypeId]};
Texture *diffuseTexture = new Texture(f, 1);
mat->addVariable("textures[0]", diffuseTexture, true);
Texture *diffuseTexture = new Texture(f, 1, false);
mat->addTexUniform("textures[0]", diffuseTexture, true);
this->node->setMaterial(mat);
/*