opaque objects are rendered before transparent objects

This commit is contained in:
devZoGok
2022-12-27 16:11:10 +02:00
parent cc2f6dc29b
commit eb8b22d4ed
5 changed files with 44 additions and 12 deletions
+10
View File
@@ -97,4 +97,14 @@ namespace vb01{
}
}
vector<Material::Uniform*> Material::getUniformsByType(Material::Uniform::Type type){
vector<Material::Uniform*> uniforms;
for(Uniform *uni : this->uniforms)
if(uni->type == type)
uniforms.push_back(uni);
return uniforms;
}
}