Put shading kernel function in header

Now library users can include it.