mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
opaque objects are rendered before transparent objects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user