working circular lights around units

This commit is contained in:
devZoGok
2024-09-12 19:27:30 +03:00
parent a0c1ffb4e2
commit 166696041c
5 changed files with 29 additions and 10 deletions
+1
View File
@@ -103,6 +103,7 @@ namespace battleship{
Texture *diffuseTexture = new Texture(f, 1, false);
mat->addBoolUniform("texturingEnabled", true);
mat->addBoolUniform("lightingEnabled", true);
mat->addBoolUniform("constLightingEnabled", false);
mat->addTexUniform("textures[0]", diffuseTexture, true);
}
else{