@Override
    public void render(Shader shader)
    {
        if(isWireframe())
            shader = WireShader.getInstance();

        shader.bind();
        shader.updateUniforms(getTransform(), material);
        mesh.draw();
    }