implemented depth configuration for 2D elements

fixed text offset configuration
This commit is contained in:
devZoGok
2021-10-18 19:06:40 +03:00
parent 9479e3324f
commit 43d4019384
10 changed files with 55 additions and 39 deletions
+4 -1
View File
@@ -92,8 +92,11 @@ namespace vb01{
shader->setMat4(proj,"proj");
shader->setVec3(camPos,"camPos");
shader->setMat4(model,"model");
if(material->getType()==Material::MATERIAL_GUI)
if(material->getType()==Material::MATERIAL_GUI){
shader->setVec2(Vector2((float)width,(float)height),"screen");
if(node)
shader->setVec3(pos,"pos");
}
render();
}