Moved the ray parameter to the innermost scope (just in case the compiler doesn't do that). Also, added a small offset to subsampled texel fetching to avoid artifacts.
Moved the ray parameter to the innermost scope (just in case the compiler doesn't do that).
Also, added a small offset to subsampled texel fetching to avoid artifacts.

zalbard/GIGL,zalbard/GIGL