changed version of shaders, removed redundant computations