changing the shader a little bit introducing a smoothing factor and smooth blending