Move shared shadowmap glsl function into shadowmap.glsl