Scattered and shadow rays should be randomnly selected based on the material BRDF. The solution needs to be implementable and performant on the GPU.