public void updateUniforms(Matrix4f worldMatrix, Matrix4f projectedMatrix,
                               Material material) {
        if (material.getTexture() != null)
            material.getTexture().bind();
        else
            RenderUtil.unbindTextures();

        setUniform("transform", projectedMatrix);
        setUniform("color", material.getColor());
    }