@Override
    public void render(){

        Transform adjustT = getTransform().copy();
        adjustT.setScale(getScale().getX(),getScale().getY() - topBarHeight,0);
        SpriteVSShader.getInstance().bind();
        SpriteVSShader.getInstance().updateUniforms(adjustT, material,new Vector4f(0,0,1,1));
        MeshManager.squareMesh.draw();

        SpriteVSShader.getInstance().bind();
        SpriteVSShader.getInstance().updateUniforms(topTransform, material,new Vector4f(0,0,1,1));
        MeshManager.squareMesh.draw();


        for (GUI child:children){
            child.render();
        }
    }