I'm trying to figure out how the Gather VOP works on a very basic level, so I decided to make a simple/fast color bleeding shader that simply gathers surrounding diffuse color from an exported color parameter. I figure that combining this output with occlusion should be much faster than full irradiance.
To do this I pipe normalised N into the “dir” input, set the imported variable to the same name as my exported parameter, and create the parameters for samples, maxdist, scope etc. I create a vector constant and wire it straight thru the loop.
It seems to do what I want it to do… The problem is that it always looks as if the Gather is only using 1 sample, regardless of the value I set. It takes longer to render as I increase the samples, but there's no improvement in quality at all.
I suspect I have to more than just wire a constant from from input to output just to make the red error go away

Im stuck.
cheers
S