refactor of fragment output in shaders: remove Fragment variables, added dedicated function to output fragments