enabled lighting

This commit is contained in:
devZoGok
2024-09-08 15:25:46 +03:00
parent 52b9ac2ffd
commit a0c1ffb4e2
6 changed files with 32 additions and 7 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ namespace battleship{
string f[]{albedoPath == configData::DEFAULT_TEXTURE ? GameManager::getSingleton()->getPath() + albedoPath : basePath + albedoPath};
Texture *diffuseTexture = new Texture(f, 1, false);
mat->addBoolUniform("texturingEnabled", true);
mat->addBoolUniform("lightingEnabled", false);
mat->addBoolUniform("lightingEnabled", true);
mat->addTexUniform("textures[0]", diffuseTexture, true);
}
else{