Add scene intersection testing in render kernel.