Shader optimization. Performance increased in 4 times (2000 ms vs 500 ms)