mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
implemented depth configuration for 2D elements
fixed text offset configuration
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user