This commit is contained in:
devZoGok
2021-10-18 19:04:02 +03:00
parent 2187f32e7e
commit 0c5f39a96f
13 changed files with 196 additions and 59 deletions
+6 -3
View File
@@ -14,8 +14,11 @@ namespace vb01{
void Material::update(){
shader->use();
shader->setBool(lightingEnabled,"lightingEnabled");
if(diffuseMap)diffuseMap->select();
if(normalMap)normalMap->select();
if(specularMap)specularMap->select();
for(Texture *t : diffuseMapTextures)
t->select();
for(Texture *t : normalMapTextures)
t->select();
for(Texture *t : specularMapTextures)
t->select();
}
}