shaders-lf-grid: Fix inaccurate grid rendering