Fix shader even more, the rest is algorithm error