WebGL arithmetics improvements