mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
E
This commit is contained in:
+6
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user