small bugfixes

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent c4cfe607f7
commit e07f30e3f7
5 changed files with 22 additions and 44 deletions
+6
View File
@@ -61,6 +61,12 @@ namespace vb01{
shader->setVec4(diffuseColor,"diffuseColor");
}
if(texturingEnabled){
shader->setInt(0,"diffuseMap");
shader->setInt(1,"normalMap");
shader->setInt(2,"specularMap");
shader->setInt(3,"parallaxMap");
shader->setInt(4,"environmentMap");
for(Texture *t : diffuseMapTextures)
t->update(0);
for(Texture *t : normalMapTextures)