You can find a template to write ray tracer in compute shade rhere enter link description here
For extending it further you can follow this enter link description here
Though it is in OpenCL it is non recursive way you can trace rays with BRDF implementation. It is fairly easy to port OpenCL to Glsl compute shader. You should get following image
Hope this helps.