Done refactoring of fragment shader for spot lighting