mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
updated texture constructor calls
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user